# HG changeset patch # User František Kučera # Date 1410033851 -7200 # Node ID 8146ad99fc67881a3422a8be6935bbdca571d154 # Parent c96459e0269017bc0749a35bcad96eb4eca564f4 in-ini: no whitespace in entry keys – but do encoding diff -r c96459e02690 -r 8146ad99fc67 java/alt2xml-in-ini/src/cz/frantovo/alt2xml/in/ini/Reader.java --- a/java/alt2xml-in-ini/src/cz/frantovo/alt2xml/in/ini/Reader.java Sat Sep 06 21:41:15 2014 +0200 +++ b/java/alt2xml-in-ini/src/cz/frantovo/alt2xml/in/ini/Reader.java Sat Sep 06 22:04:11 2014 +0200 @@ -149,9 +149,9 @@ }, ENTRY( - "\\s*(?[^=]+)\\s*=\\s*\"(?[^']+)\"\\s*((;|#)\\s*(?.*)){0,1}", // quoted value → include spaces + might have comment - "\\s*(?[^=]+)\\s*=\\s*'(?[^']+)'\\s*((;|#)\\s*(?.*)){0,1}", // apostrophed value → include spaces + might have comment - "\\s*(?[^=]+)\\s*=\\s*(?.+)" // unquoted value → strip spaces + no comments + "\\s*(?[^=\\s]+)\\s*=\\s*\"(?[^']+)\"\\s*((;|#)\\s*(?.*)){0,1}", // quoted value → include spaces + might have comment + "\\s*(?[^=\\s]+)\\s*=\\s*'(?[^']+)'\\s*((;|#)\\s*(?.*)){0,1}", // apostrophed value → include spaces + might have comment + "\\s*(?[^=\\s]+)\\s*=\\s*(?.+)" // unquoted value → strip spaces + no comments ) { @Override public void processLine(LineContext lc, FileContext fc) throws SAXException {