jaor/xmobar — pull request #186 by dunric (2014-09-03 00:54:35+00:00)
Title: Multiline strings support for config

Hi,

enclosed patch should add support for haskell-like multiline strings in xmobar's resource file.
This may also solve older issue #92 .
It replaces former `strField` function so all parsers using it are affected. Most suitable for lengthy template field.

The template string now may be broken in multiple rows (example from .xmobarrc):
```haskell
, sepChar = "%"
, alignSep = "}{"
, template = "%StdinReader% }{ [\
\\
\\
\%mpd%\
\\
\\
\\
\%default:Master%|\
\%wlan0wi%|%thermal0%|%battery%|\
\%LKPR% %mydate%|\
\%kbd%" }
```
It was also necessary to remove case from `stripComments` function when leading unescaped backslash gets removed. Didn't get the reason what it has to do with comments stripping (?).
Row comments starting with `--` are still properly stripped.

Take care