• Converts MTEXT contents into plain-text paragraphs, the text that remains when AutoCAD EXPLODE turns multiline text into single-line text.

    Paragraph breaks (\P) and column breaks (\N) start a new paragraph, formatting codes (\F, \H, \C, \L, ...) and grouping braces are dropped, escaped characters (\\, \{, \}), non-breaking spaces (\~) and Unicode escapes (\U+XXXX) are decoded, and stacked fractions (\S1^2;) are written inline as 1/2.

    Parameters

    • contents: string

      Raw MTEXT contents.

    Returns string[]

    The plain-text paragraphs, in order.