cmhughes / latexindent.pl

Perl script to add indentation (leading horizontal space) to LaTeX files. It can modify line breaks before, during and after code blocks; it can perform text wrapping and paragraph line break removal. It can also perform string-based and regex-based substitutions/replacements. The script is customisable through its YAML interface.
GNU General Public License v3.0
884 stars 84 forks source link

Wrapping lines doesn't work for lines starting with \ #368

Closed TommasoAmici closed 2 years ago

TommasoAmici commented 2 years ago

Please provide the following when posting an issue:

original .tex code

\citeA{cyr2013} finds that a country's culture is a strong predictor of a user's perception of a website. In particular, users in low uncertainty avoidance and high

yaml settings

modifyLineBreaks:
  textWrapOptions:
    columns: 88

actual/given output

\citeA{cyr2013} finds that a country's culture is a strong predictor of a user's perception of a website. In particular, users in low uncertainty avoidance and high

desired or expected output

\citeA{cyr2013} finds that a country's culture is a strong predictor of a user's
perception of a website. In particular, users in low uncertainty avoidance and high

anything else

Please put any comments or anything else here :)

cmhughes commented 2 years ago

Thanks for this, please see https://latexindentpl.readthedocs.io/en/latest/sec-the-m-switch.html#lst-tw-bb-announce1

cmhughes commented 2 years ago

I hope the above helps, let me know if not.