Skip to content

Tweak output of modelicafmt #26

@mwetter

Description

@mwetter

In lbl-srg/modelica-buildings#2426, I applied modelicafmt commit 325ef64 with a few tweaks. I suggest these to be added to modelicafmt. The script at the above PR shows the changes, these are

  1. If a function has only one argument, then don't do a line break. The reason is that we have many functions such as pre(), der() and others (sin(), ...) that are better to keep on one line.
  2. Add an extra line break before equation and initial equation, or initial algorithm and algorithm to improve readability.
  3. In the revision notes of the .mo code, there is an extra empty line after the last </ul>. E.g., the file has </ul>\n\n</html> rather than </ul>\n</html>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions