summaryrefslogtreecommitdiff
path: root/source/text/sbasic/shared/03030113.xhp
AgeCommit message (Collapse)Author
2016-06-16Recover lost basic in help indentationCaolán McNamara
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
2016-01-25fix validation errors by round-trip through helpauthoring extensionChristian Lohmaier
lots of missing attributes "id" and "xml-lang" (extension patched to keep bascode tag) Change-Id: I9c5600b6fa133a6b1062803eadb976e043db7a4a
2015-11-12The 'lastedited' element is useless, we have git.Jan Holesovsky
2013-11-05basic code not localisableLionel Elie Mamane
Change-Id: Ifcc4985afac1f62787d317352bdb45a490d71963
2013-11-05wrong titleLionel Elie Mamane
Change-Id: I776db2914bb4e51af35d7c4610d457892b36e9b5
2013-11-05janitorial: space outside of emphLionel Elie Mamane
Change-Id: I624e4d61a7482e316297feb78f30b20b57ce39b7
2013-11-03missing spaces in new help textAndras Timar
Change-Id: Idd049b01ac7fd83bc49d907788924a28fc50b7cd
2013-09-17documentation for new UNO Date/Time/DateTime struct <-> Basic Time conversionsLionel Elie Mamane
Change-Id: I8679534affa1ac5ee22393189188ff1ac09aa0f5 Reviewed-on: https://gerrit.libreoffice.org/5899 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>