Creating user shortcuts with AutoText seems to append a carriage return to the end of the text saved. Removing the extra carriage return from the item through direct editing and saving it will not remove the carriage return; it just reappears upon save. 1. First create a new category or just use "My AutoText" with Edit | AutoText... | Categories... 2. Inside a document, type in a few words, like "ready to close year" _without adding a carriage return_. Highlight the words and do a Ctrl-C (copy to clipboard). 3. Go back to Edit | AutoText... and enter a Name and Shortcut. Click on AutoText drop-down button and select "New (text only)". If you select "New" instead of "New (text only)", you may not see this problem. 4. Go back to document to try the shortcut you've just created.
Old bug, already there in OOo 2 : https://issues.apache.org/ooo/show_bug.cgi?id=79861 Set version accordingly : 3.3.0 Best regards. JBF
*** Bug 77482 has been marked as a duplicate of this bug. ***
*** Bug 63740 has been marked as a duplicate of this bug. ***
In the future please do not add bugs to most annoying bug list without knowing what belongs on there - I am removing it from the list. Note that other bugs on MAB list are mostly crashers, hangers, or if not, are bugs that are going to affect a large portion of our users. This bug has 4 total comments over almost 2 year period - it's really not affecting many users. Please do not add it back to the list - it won't make it get fixed faster, it'll just make the MAB list less useful because bugs that don't belong on there will be sitting on the list.
(In reply to comment #4) > This bug has > 4 total comments over almost 2 year period - it's really not affecting many > users. Did you also have a look at the "See also" section? At least two duplicates of this bug exist (bug 63740 and bug 77482) which in total add 17 more comments. *Yourself* commented there and even marked 77482 as a duplicate of this. So dont't complain about too less users affected and comments in this certain report. The apache bugtracker for AOO adds 11 further comments to this issue. So we are talking about 33 comments in total about a bug that at least exists since 2007-07-21 in AOO and was taken over to LO. > Note that other bugs on MAB list are mostly crashers, hangers, or if not, > are bugs that are going to affect a large portion of our users The fact, that at least two further users felt it would be worth writing a report and 33 comments about the reports make me feel believe that "large portion of our users" *are* affected. Furthermore i believe that a bug - that makes a function unusable in some cases (single phrases without formatting) - that is known of for nearly *seven* years now - that is reported many times - that is easily reproducible - that seems easy to fix definitely *is* "most annoying". > Please do not add it back to the list I won't, but your arguments are wrong.
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present on a currently supported version of LibreOffice (4.4.3 or later) https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results; 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for your help! -- The LibreOffice QA Team This NEW Message was generated on: 2015-06-08
Confirmed on Win 7 with Version: 4.4.4.1.0+ Build ID: 24c5f9979e61fde7b098af60756a4890e5713390 Locale : fr_FR
Possible entry point: http://opengrok.libreoffice.org/xref/core/sw/source/core/doc/docglos.cxx#InsertGlossary
Always in LO 2.0.4. Is it so complicated to correct this bug ?
just retestet with Version: 5.1.4.2 (x64) Build-ID: f99d75f39f1c57ebdd7ffc5f42867c12031db97a CPU-Threads: 2; BS-Version: Windows 6.1; UI-Render: Standard; Gebietsschema: de-DE (de_DE) and the problem still exists
Confirmed in 5.2.1.2 under Gnu/Linux. Please fix. The bug is extremely annoying and it's making me lose valuable time, focus, and keystrokes. Thanks!
An easy workaround is to use autocorrection instead of autotext
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Still reproducible with LO 6.1.1.0.0+ built at home under Ubuntu 18.04 x86-64. Best regards. JBF
Still annoying and reproducible on Arch-Linux with LO: - Version: 6.2.4.2.0+ - Build-ID: 6.2.4-1 Best regards Justus
This is an important bug for me too, and I imagine it is for lots of other translators. It is one of the main reasons I have not changed to Libreoffice from Winword.
(In reply to myrtleslopes from comment #16) Adding my voice to the request for this to get some attention. No changes as of LO 7.1.2.1. Also, is it really "difficultyMedium" rather than "easyHack"? Doesn't sound like it's too difficult.
*** Bug 147670 has been marked as a duplicate of this bug. ***
(In reply to Eyal Rozenberg from comment #17) > Also, is it really "difficultyMedium" rather than "easyHack"? "difficultyFoo" are only used with easyhacks, as their difficulty level. When appear without the easyhack keyword, it's either put by mistake, or was accidentally kept when easyhack keyword was removed. (The redundancy is another topic, my explanation is about actual use, not how it would possibly be engineered best.) > Doesn't sound like it's too difficult. FTR: given how it's implemented, fixing this (which https://gerrit.libreoffice.org/c/core/+/143353 does) will be a breaking change for anyone who created their own text-only autotexts, *expecting* the trailing paragraph mark. So despite it's not too complex technically, respect regression reports.
(In reply to Mike Kaganski from comment #19) > FTR: given how it's implemented, fixing this (which > https://gerrit.libreoffice.org/c/core/+/143353 does) will be a breaking > change for anyone who created their own text-only autotexts, *expecting* the > trailing paragraph mark. So despite it's not too complex technically, > respect regression reports. s/respect/expect/ ? Well... it's true that it will technically be breaking, but I'm guessing a person who knows how to create autotext entries is likely to figure out what's going on, and recreate their entries. Still, breakage is breakage. Is there a policy on what to do when a feature's behavior/semantics change?
It surely will break some of the already generated auto texts. However, it is easily possible to recreate the auto text in a matter of seconds, but it is - without this patch - impossible to remove the empty parageraph at the end of an auto text.
(In reply to Eyal Rozenberg from comment #20) > s/respect/expect/ ? Yes, exactly; sorry. > Still, breakage is breakage. Is > there a policy on what to do when a feature's behavior/semantics change? No formal policy AFAIK; we just can't backport this to 7.4. Changing behavior with major releases is OK. And indeed, changing this is very reasonable; the only point of comment 19 is to be prepared. Still, we at least must check our bundled autotexts, and make sure that at least *those* work as before (so e.g. the lorem one needs an explicit trailing newline now).
I don't know if the currently installed auto texts should be the same or not. For instance, the "A" + F3 key now produces "Attention" without a new paragraph and previously it produced "Attention" with a new paragraph. What does a user expect inserting such an only text auto text?
(In reply to Andreas Heinisch from comment #23) > What does a user expect inserting such an only text auto text? Autotext with a key that doesn't include a paragraph break is never expected to add a paragraph break is always unexpected - for a user who is not already used to what we have implemented right now. The idea is that an autotext behaves like acronym expansion, while paragraph breaks are something structural. (The exception is when the autotext key itself suggests a paragraph break explicitly, e.g. "para" or "break" or "nextpar" etc. - and we don't have those.)
(In reply to Mike Kaganski from comment #22) > Still, we at least must check our bundled autotexts, and make sure that at > least *those* work as before (so e.g. the lorem one needs an explicit > trailing newline now). There are a lot of auto texts within different languages and for instance in the en-US at least the following have to be changed: Header Commemorative Publication Header Left Commemorative Publication Lorem Quote VIA OVERNIGHT MAIL Strange that the paragraphs in between are lost.
(In reply to Andreas Heinisch from comment #23) > For instance, the "A" + F3 key now produces "Attention" without a new > paragraph and previously it produced "Attention" with a new paragraph. What > does a user expect inserting such an only text auto text? Any existing user, who uses it already, expects what has always happened before. Any new user would learn whatever the program does for any autotext that they haven't used yet. So IMO: keep the paragraph after "Attention:". IMO, it's like the "Best wishes" (BW), which is naturally followed by a newline, and then the user types the name. (In reply to Eyal Rozenberg from comment #24) > Autotext with a key that doesn't include a paragraph break is never > expected to add a paragraph break is always unexpected - for a user who is > not already used to what we have implemented right now. I don't see any logic behind this: the autotext is inserted with a keyword + F3. How would a user know if "autotext's key includes a paragraph break"? Or is the logic then that no autotext ever may include a paragraph break - because no "key" could include it? An autotext inserting something like a heading (or even large text body with many paragraphs) is perfectly normal and widespread. The idea that autotext is just a shortcut for a keyword expanding to a few words is too narrow. Anyhow, if a specific autotext now has a trailing newline, but is better without, it's a matter for a separate enhancement, which this change will make possible.
Let me clarify myself: I don't claim that all our autotexts must keep the trailing newline forever: I only say that the change that fixes *this specific issue* must make as few side-effect functional changes as possible; this means: it must no more insert the newlines for autotexts that were created from selections without such trailing newline (the very essense of the issue); it necessarily would break custom autotexts (unavoidable breakage); but at least it must make sure to keep bundled autotexts' behavior unchanged - *for all of them*, regardless of the original intent of those bundled autotexts' authors (so avoiding what can be avoided). Then, later commits could be created to selectively change specific bundled autotexts, with respective bug reports, UX discussion, and a way for anyone to put their reasonings in those respective issues, both before and after those changes, and a way to selectively revert those changes if needed.
(In reply to Mike Kaganski from comment #26) I'll also start with a clarification - I don't mind very much whether the pre-defined autotext entries keep the extra paragraph break or not. Like Andreas said - recreating them is very easy, so whether they're defined this way or the other by default, I don't mind very much (nor will I think people will be particularly annoyed either way). > I don't see any logic behind this: the autotext is inserted with a keyword + > F3. How would a user know if "autotext's key includes a paragraph break"? Or > is the logic then that no autotext ever may include a paragraph break - > because no "key" could include it? It's mostly the latter. My perception (and I believe most users' perception) of autotext is something intended for inline, within-the-paragraph, replacements. I think of applying autotext entry like expanding an acronym or shorthand for an expression: "ltd." -> "limited", "asap" -> as soon as possible, and perhaps the production of non-directly-typeable characters with multi-char keys, e.g. "---" -> "—" (em dash). Expansion involving paragraph breaks is surprising to me. But again - I don't mind how the predefined entries are, I'll just define what I want how I want it.
I will change all the auto texts so that they keep the same functionality as before. Afterwards, they are easy to change if a lot of users are convinced they should be changed.
Fixed with ce64398653a896c8a48dd6cabe2b75d9c025873d (commit notifications got a day off today). Please create a release notes entry; make a notice there that users who relied on automatic newline insertion will need to re-create their custom text-only autotexts, selecting the trailing empty paragraph. Thanks Andreas!
Added to https://wiki.documentfoundation.org/ReleaseNotes/7.5#Writer
Andreas, I'm looking at that commit. Your message says: > The carriage return at the end of it is appended in > SwXMLTextBlockParContext::~SwXMLTextBlockParContext() > which can't be removed without introducing side effects. and so you remove it after-the-fact in sw/source/core/doc/docglos.cxx but - is that the right way to do it? That is, should the addition of the extra paragraph be avoided in the first place? I looked at SwXMLTextBlockParContext: https://github.com/LibreOffice/core/blob/10d29c390dd58ed629dd27fe5ed35fae28eceec3/sw/source/core/swg/SwXMLBlockImport.cxx#L105 and that class doesn't have any doxygen explaining what it's about. I did see the `\015` added in the destructor - also without explanation. Perhaps it's not the right class to use for text-only autotext entries? Or, alternatively - are you sure that other code which uses this class needs the extra newline I mean, I appreciate the speedy fix, but still.
Thx Eyal for your remarks! In fact I tried to not append the extra paragraph in the first place in the first patch set https://gerrit.libreoffice.org/c/core/+/143353/1, but it turned out that some of the auto texts did not work as expected, and opening some text files didn't as well. So I decided the easiest way to fix this is to remove the supplementary new line, because text blocks are also used for auto corrections and insertions of text blocks. Glossary entries and auto corrections start a new document using BeginGetDoc [1] and create a new document using the new line at the end including the used text. Another possibility to solve this issue could be a new parameter passed down to MakeTextBlock or a new flag in [2] in order to not include the new line at the end. [1] https://opengrok.libreoffice.org/xref/core/sw/source/core/doc/docglos.cxx?r=ce643986#141 [2] https://opengrok.libreoffice.org/xref/core/sw/source/core/inc/swblocks.hxx?r=61f42c31#42 Mike what do you think about the flag in [2]?
Apparently the UI-Tests hang, so I revert this patch for now, and try to pass down a flag in order to prevent the newline at the end of an autotext.
Andreas Heinisch committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/36a554e1f1c4e924a2cbc2df5a4f164fa31e3d6b Revert "tdf#53023 - Remove last empty paragraph from auto text" It will be available in 7.5.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Andreas Heinisch committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/3772f18266c3347e8fd60eb8f058d65328c400b4 tdf#53023 - Remove last empty paragraph from auto text It will be available in 7.5.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Hi Eyal! I tried your proposal to check if we can avoid the additional new line at the end of the text in the dtor, but this causes to many side effects, because the new line needs to be avoided just for the very last text. So atm, I have no better fix for this problem where even myself sometimes run into it :)
Andreas Heinisch committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/4d83725981e46c62efb5ce6a68ae7c345465b448 tdf#53023 - Revert hanging unit test It will be available in 7.5.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Rational behind the decision of partially reverting the ui test can be found at https://gerrit.libreoffice.org/c/core/+/143781