openscad-format icon indicating copy to clipboard operation
openscad-format copied to clipboard

Fails to format a very simple file correctly

Open keeeal opened this issue 2 years ago • 0 comments

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.

keeeal avatar Jul 01 '23 10:07 keeeal