> From: Sven Barth via fpc-devel <fpc-devel@lists.freepascal.org> > Whitespace is indeed an important point. I myself pay quite some > attention to nice identation and with multiline strings that will > probably break:
What about matching Python's whitespace handling for multiline docstrings? https://www.python.org/dev/peps/pep-0257/#handling-docstring- indentation "Docstring processing tools will strip a uniform amount of indentation from the second and further lines of the docstring, equal to the minimum indentation of all non-blank lines after the first line. Any indentation in the first line of the docstring (i.e., up to the first newline) is insignificant and removed. Relative indentation of later lines in the docstring is retained. Blank lines should be removed from the beginning and end of the docstring." Bash heredoc syntax has a similar idea where you can use <<- instead of << to start it to indicate that leading tabs should be ignored. -- Zoƫ Peterson Scooter Software _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel