Code: Select all
Loop ,Parse, aa, `n, `r
{
x := A_LoopField
If (x = "") Or (SubStr(x, 1, 1) = "#") ; leere Zeile oder Zeile mit führendem #
Continue
StringSplit, c, x , <
If (c0 = 2)
{
StringSplit, s, c2, {}
If (s0 = 3)
c2 := s1 . "{" . StrReplace(s2, " ", Chr(160)) . "}" . s3 ; Chr(160) = NonBreakableSPace
}
e .= "<" . c2 . " " . c1 . "`r`n"
}