Ask Your Question
1

Eliminate space character between note number and text of note [closed]

asked 2013-10-21 06:46:33 +0100

kraml gravatar image

updated 2015-11-12 03:41:48 +0100

Alex Kemp gravatar image

I have a problem with a leading space (as if made with the spacebar) between the footnote number and the text of the note. I need a way to kill that space character, preferably for all notes at once. This problem occurs in documents exported from other software into the rtf format. I do not have an option to correct the issue at the rtf creation stage. You can't kill an actual space character, as far as I can tell, with any of the global footnote configurations in Writer. [LibreOffice Writer 4.1]

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-11-12 03:42:00.029468

Comments

1

Can you link to an image of what you are seeing (with hidden characters displayed) so we can get a better sense of how to reproduce it and what to search for? Find/replace using regular expressions works for finding a tab separator, but a space (after the tab) prior to the footnote text is more difficult.

oweng gravatar imageoweng ( 2013-10-21 07:41:12 +0100 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2013-10-21 20:58:34 +0100

kraml gravatar image

updated 2013-10-21 21:00:16 +0100

I figured it out. Search on ^\s as a regular expression. Replace all with nothing. Thx!

edit flag offensive delete link more

Comments

Interesting. The list of LO regular expressions does not include \s. It seems to behave the same here (v4.1.2.2) as \t i.e., it matches a tab character.

oweng gravatar imageoweng ( 2013-10-22 00:03:29 +0100 )edit
2

Apparently \s is an "ICU" Search Term: http://sirius.on-rev.com/regex/regular_expressions_writer.html

I first stumbled across it in the "Regular" pulldown list of the LO extension "Alternative Find & Replace for Writer."

kraml gravatar imagekraml ( 2013-10-22 18:21:23 +0100 )edit

That makes sense. The help page is probably just not updated. Thanks for reporting back. Please select your own answer as correct once you have enough karma.

oweng gravatar imageoweng ( 2013-10-23 00:26:30 +0100 )edit

Question Tools

1 follower

Stats

Asked: 2013-10-21 06:46:33 +0100

Seen: 428 times

Last updated: Oct 21 '13