Context: LaTeX is a typesetting system. When compiling a document, a lot of really in-depth debugging information is printed, which can be borderline incomprehensible to anyone but LaTeX experts. It can also be a visual hindrance when looking for important information like errors.

  • borari@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    1
    ·
    4 months ago

    I ran into this issue when using code blocks in LaTeX that contained a bash command like ‘echo aBcdEF32… > /var/www/index.php’, where aBcdEF32… was the base64 encoded string of a web shell. I wound up having to set the line break behavior to split on some random letters/numbers to get everything to wrap appropriately, although that was probably some hacky heretical solution.

    • Treczoks@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      4 months ago

      You could have used a thin space every four or eight hex digits, showing that it is not really a space but making it easier to read.

      But you cannot blame TeX for not being able to break such a construct.

      • borari@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        2
        ·
        4 months ago

        Oh I don’t blame it at all, I totally realize I threw a weird edge case at it! If it sounded like I was slagging TeX I didn’t mean it that way at all.