Skip to content

Fails to format a very simple file correctly #23

Description

@keeeal

Steps to reproduce

  1. Create a docker image with openscad-format in it from a Dockerfile:
FROM node:alpine
RUN npm install -g openscad-format
  1. Make an OpenSCAD file called test.scad:
module test() {}
  1. Use openscad-format from inside the docker container:
openscad-format -i path/to/test.scad --force

Expected output (obviously formatting config dependent)

module test()
{
}

Actual output

module
test()
{
}

Issue

The keyword module and the name of the module are on different lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions