Skip to content

\label must directly follow preceding control sequence without newline in between #20

@Holzhaus

Description

@Holzhaus

Before:

\section{foo}\label{sec:foo}

After reformatting:

\section{foo}
\label{sec:foo}

Although it looks nicer, this actually introduces a bug. Because the newline is treated as a space, it's possible that the space does not fit on the same page, which means that the \label ends up on the next page (resulting in a wrong page number).

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