From de8326d00dffdb500c02839a98330b869c2457f3 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sat, 22 Dec 2018 09:28:48 -0800 Subject: Trim trailing white space throughout the project Many editors clean up trailing white space on save. By removing it all in one go, it helps keep future diffs cleaner by avoiding spurious white space changes on unrelated lines. --- examples/simpleWiki.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/simpleWiki.py') diff --git a/examples/simpleWiki.py b/examples/simpleWiki.py index 1813432..4ec3b71 100644 --- a/examples/simpleWiki.py +++ b/examples/simpleWiki.py @@ -12,7 +12,7 @@ def convertToHTML(opening,closing): def conversionParseAction(s,l,t): return opening + t[0] + closing return conversionParseAction - + italicized = QuotedString("*").setParseAction(convertToHTML("","")) bolded = QuotedString("**").setParseAction(convertToHTML("","")) boldItalicized = QuotedString("***").setParseAction(convertToHTML("","")) @@ -22,7 +22,7 @@ def convertToHTML_A(s,l,t): except ValueError: raise ParseFatalException(s,l,"invalid URL link reference: " + t[0]) return '{}'.format(url,text) - + urlRef = QuotedString("{{",endQuoteChar="}}").setParseAction(convertToHTML_A) wikiMarkup = urlRef | boldItalicized | bolded | italicized -- cgit v1.2.1