Polyman Documentation - v2.2.2
    Preparing search index...

    Function normalizeLineEndingsFromUnixToWin

    • Normalizes line endings in content for Windows systems. Converts Unix-style (\n) line endings to Windows-style (\r\n). Handles mixed/corrupted encodings by first normalizing to Unix, then converting.

      Parameters

      • content: string

        Content with potentially mixed line endings

      Returns string

      Content with normalized line endings