Apache OpenOffice (AOO) Bugzilla – Issue 11927
Can not turn off some "AutoFormat while typing"
Last modified: 2013-08-07 14:43:45 UTC
Autoformat is always active even when the menu-entry is unchecked. Steps to reproduce (this is reproducible 100%) 1) Open a textdocument 2) Turn off autoformat while typing using Format|AutoFormat->While Typing 3) Enter some text to which a autoformat configuration exists: eg: 1/2 *bold* _underscore_ and so on Actual results: 1/2 is converted into a single character (½) *bold* is converted into a bold formatted word, _underscore_ is converted to a word with underlining applied. Expected results: 1/2 should stay 1/2, *bold* and _underlined_,etc should remain the way the user typed them... This also happens with OOo643. I consider this basic functionality and therefore use P2
Confirmed with the Dutch build of 1.0.2 on Windows. Fortunately, it is still possible to disable all autoformat options one by one, through the menu Tools>Autocorrection/Autoformat, Options tab.
since all other qa members seem to be on vacation ;-) , I confirm my own issue. This still occurs with 1.0.3.1
Reassigned to SBA
works fine in 644m9
closed
reopen issue. Still occurs with OOo 1.1rc (english version) -> target milestone now: OOo 1.1
SBA->Christian: Even if YOU found this yourself and see it it as a big annoyance, this is not Prio2. (or did I miss the crash? ;-) Prio changed to P3. Reassigned to Oliver.
I took: # Basic functionality is not working correctly as criterion (see original description), but P3 is fine...
(Priority gidelines were new at that time...)
SBA->OS: It is not broken entirely ;-) These ones don't get switched off after unchecking "Format-Autoformat-While typing": - Use replacement table - Correct Two INitiaI CApitals - Capitalize first letter of every sentence - Automatic *bold* and _underline_ - URL Recognition - Replace 1st... with 1^st... - Replace 1/2 with ½ - Replace dashes - Ignore double spaces These behave like expected (they do get switched off): - Delete spaces and dashes at beginnig and end of paragraph - Delete spaces and dashes at end and start of line - Apply numbering - Apply border - Create table - Apply styles
It is not broken at all. The problem is that since AutoFormat and AutoCorrect have been merged into one dialog page they cannot be distinguished anymore. OS->CJ: Any (good) idea?
CJ->OS: Yes, switch them off when Autoformat/While Typing has been disabled. :-) Like some kind of manual override. In my opinion we do not need to have some dialog changes
Necessary changes: sw/source/ui/docvw/edtwin.cxx: diff -r1.70 edtwin.cxx 1941c1941,1943 < if( !aKeyEvent.GetRepeat() && pACorr && --- > > if( !aKeyEvent.GetRepeat() && pACorr && > pACfg->IsAutoFmtByInput() && 1952c1954,1955 < else if( !aKeyEvent.GetRepeat() && pACorr && --- > else if( !aKeyEvent.GetRepeat() && pACorr && > pACfg->IsAutoFmtByInput() && 1984c1987 < if( pACorr && --- > if( pACorr && pACfg->IsAutoFmtByInput() && 4210c4213 < if(pACorr && --- > if(pACorr && pACfg->IsAutoFmtByInput() && sw/source/ui/shells/textsh.cxx: diff -r1.27 textsh.cxx 364,365c364,367 < SvxAutoCorrect* pACorr = OFF_APP()->GetAutoCorrConfig()->GetAuto Correct(); < if( pACorr && pACorr->IsAutoCorrFlag( CptlSttSntnc | CptlSttWrd | --- > OfaAutoCorrCfg* pACfg = OFF_APP()->GetAutoCorrConfig(); > SvxAutoCorrect* pACorr = pACfg->GetAutoCorrect(); > if( pACorr && pACfg->IsAutoFmtByInput() && > pACorr->IsAutoCorrFlag( CptlSttSntnc | CptlSttWrd |
Fixed in cws os16 sw/source/ui/docvw/edtwin.cxx sw/source/ui/shells/textsh.cxx
OS->MRU: cws os16 can be found on so-cwsserv02, wntmsci8 and unxsols4.pro
Checked fix with internal CWS os16.
Verified. Fix will be included in OO 1.1.1.
*** Issue 21197 has been marked as a duplicate of this issue. ***
SBA: OK in internal build srx645_m27-1_01.8737 (OOo 1.1.1 candidate). Closed.