summaryrefslogtreecommitdiff
path: root/source/text/sbasic/shared/03120307.xhp
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-06-16 15:41:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-06-16 15:45:53 +0100
commit5f7e3ad041ddf022f6b0feb11fac1debbcf835b2 (patch)
tree0c586d77142e1bb7e4c72ceb8d87f39c25a974a3 /source/text/sbasic/shared/03120307.xhp
parent02b56e7da2dba0f2cbc1847f8c52bc7ade6a8e32 (diff)
Recover lost basic in help indentation
regression from... commit 6614bedceadcc07ec082c5e926107f27903bda5c Date: Mon Jan 25 20:07:10 2016 +0100 fix validation errors by round-trip through helpauthoring extension with git show 6614bedceadcc07ec082c5e926107f27903bda5c | ~/recoverindent.py import fileinput import re import sys added = [] removed = [] filename = "" def processlastfile(filename, added, removed): if len(added) != len(removed): print "BROKEN" sys.exit(-2) if len(removed): f = open(filename, "rw") linestring = open(filename, "r").read() start = 0 for x in range(0, len(added)): if added[x] == removed[x]: continue if added[x].strip() != removed[x].strip(): print "BROKEN" sys.exit(-2) if filename == "source/text/sbasic/shared/03080301.xhp" and x == 6: print "skipping special hunk", removed[x], "in source/text/sbasic/shared/03080301.xhp" else: start = linestring.find(added[x], start) if start == -1: print "BROKEN" sys.exit(-2) linestring = linestring[0:start] + removed[x] + linestring[start + len(added[x]):] start = start + len(removed[x]) open(filename, "w").write(linestring) for line in fileinput.input(): if line.startswith("--- a/"): if filename is not "": processlastfile(filename, added, removed) added = [] removed = [] filename = line[6:-1] elif "role=\"bascode\"" in line: m = re.search('>(.+?)<', line) code = m.group(1) if line.startswith("-"): removed.append(code) else: added.append(code) processlastfile(filename, added, removed) which puts the code back the way it was, except for one string which had changed and was fixed manually afterwards Change-Id: Ic67abf36bb5d27be58a51ebbf5022830f56dcb37
Diffstat (limited to 'source/text/sbasic/shared/03120307.xhp')
-rw-r--r--source/text/sbasic/shared/03120307.xhp14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/text/sbasic/shared/03120307.xhp b/source/text/sbasic/shared/03120307.xhp
index 049ca40a15..4f25d4a0cb 100644
--- a/source/text/sbasic/shared/03120307.xhp
+++ b/source/text/sbasic/shared/03120307.xhp
@@ -59,13 +59,13 @@
<paragraph id="par_idm1341027360" role="bascode" localize="false" xml-lang="en-US">Sub ExampleUSDate</paragraph>
<paragraph id="par_idm1341026128" role="bascode" localize="false" xml-lang="en-US">Dim sInput As String</paragraph>
<paragraph id="par_idm1341024896" role="bascode" localize="false" xml-lang="en-US">Dim sUS_date As String</paragraph>
-<paragraph id="par_id3159252" role="bascode" xml-lang="en-US"> sInput = InputBox("Please input a date in the international format 'YYYY-MM-DD'")</paragraph>
-<paragraph id="par_idm1341021888" role="bascode" localize="false" xml-lang="en-US"> sUS_date = Mid(sInput, 6, 2)</paragraph>
-<paragraph id="par_idm1341020640" role="bascode" localize="false" xml-lang="en-US"> sUS_date = sUS_date &amp; "/"</paragraph>
-<paragraph id="par_idm1341019376" role="bascode" localize="false" xml-lang="en-US"> sUS_date = sUS_date &amp; Right(sInput, 2)</paragraph>
-<paragraph id="par_idm1341018112" role="bascode" localize="false" xml-lang="en-US"> sUS_date = sUS_date &amp; "/"</paragraph>
-<paragraph id="par_idm1341016848" role="bascode" localize="false" xml-lang="en-US"> sUS_date = sUS_date &amp; Left(sInput, 4)</paragraph>
-<paragraph id="par_idm1341015584" role="bascode" localize="false" xml-lang="en-US"> MsgBox sUS_date</paragraph>
+<paragraph id="par_id3159252" role="bascode" xml-lang="en-US"> sInput = InputBox("Please input a date in the international format 'YYYY-MM-DD'")</paragraph>
+<paragraph id="par_idm1341021888" role="bascode" localize="false" xml-lang="en-US"> sUS_date = Mid(sInput, 6, 2)</paragraph>
+<paragraph id="par_idm1341020640" role="bascode" localize="false" xml-lang="en-US"> sUS_date = sUS_date &amp; "/"</paragraph>
+<paragraph id="par_idm1341019376" role="bascode" localize="false" xml-lang="en-US"> sUS_date = sUS_date &amp; Right(sInput, 2)</paragraph>
+<paragraph id="par_idm1341018112" role="bascode" localize="false" xml-lang="en-US"> sUS_date = sUS_date &amp; "/"</paragraph>
+<paragraph id="par_idm1341016848" role="bascode" localize="false" xml-lang="en-US"> sUS_date = sUS_date &amp; Left(sInput, 4)</paragraph>
+<paragraph id="par_idm1341015584" role="bascode" localize="false" xml-lang="en-US"> MsgBox sUS_date</paragraph>
<paragraph id="par_idm1341014352" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
</bascode>
</body>