diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2013-02-19 20:03:04 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2013-02-19 20:03:04 +0100 |
commit | 3f0c58a053b8a0d4542a2826726f5fd5737f9644 (patch) | |
tree | 844cf71a5d61d1a63c17a8c90a18a0b20dcdaaf2 /rnc_tokenize.py | |
parent | 8de8ddf662b66434d8b575f380ea6e4b598fb11c (diff) | |
download | rnc2rng-master.tar.gz rnc2rng-master.tar.xz rnc2rng-master.zip |
Adjust corosync testcase respectively.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'rnc_tokenize.py')
-rw-r--r-- | rnc_tokenize.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rnc_tokenize.py b/rnc_tokenize.py index 0c614fc..677741d 100644 --- a/rnc_tokenize.py +++ b/rnc_tokenize.py @@ -198,9 +198,10 @@ t_INCLUDE.__doc__ = r'include\s*"' + NCName + '"' def t_LITERAL(t): r'''(?msx)(?P<start>(?P<start1>["'])(?:(?P=start1){2})?).*?(?P=start) (?:\s*[~]\s*(?:['"]{1,3}).*?(?:['"]{1,3}))*''' - #r'".+?"(?:\s*[~]\s*".+?")*' - #r'''(["'])(\1{2})?.*?\1\2(?:\s*[~]\s*\1\2.?*\1\2)*''' t.value = ' '.join(i.rstrip("\n").strip(' "') for i in t.value.split('~')) + # this is a little hack to enforce new-lines in XML attributes, + # not present at trang + t.value = t.value.replace("\n", "
\n") return t |