trlc icon indicating copy to clipboard operation
trlc copied to clipboard

corner-case for ''' strings

Open florianschanda opened this issue 2 years ago • 0 comments

In the LRM we have something like this:

  bnf = '''
    foo ::= bar
            { wibble }
  '''

This comes out as

foo ::= bar
{ wibble }

It would be better if it came out like this:

foo ::= bar
        { wibble }

We could change the rules to only ignore absolute first line (i.e. the stuff on the same line as the ''' when figuring out common whitespace). But still ignore blank lines. But this is rapidly becoming a mess.

florianschanda avatar Feb 15 '23 15:02 florianschanda