Bug 292844 - Long lines wrapped
Summary: Long lines wrapped
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: part (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: HI normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-30 08:03 UTC by Médéric Boquien
Modified: 2012-07-05 15:33 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Médéric Boquien 2012-01-30 08:03:00 UTC
Version:           2.1.1 (using KDE 4.8.0) 
OS:                Linux

When opening a latex document with kile i get the following message: "The file [...] was opened and contained too long lines (more than 1 024 characters). Too long lines were wrapped and the document is set to read-only mode, as saving will modify its content."

Reproducible: Didn't try

Steps to Reproduce:
Open a file with long lines.

Actual Results:  
The above message is displayed.

Expected Results:  
No message is displayed and no action is taken. Long lines are perfectly fine (at least i never had a problem with them with strings much longer than 1024 chars).

Thanks!
Comment 1 Médéric Boquien 2012-01-30 08:19:32 UTC
It also causes problems with long lines that are commented because after the forced wrapping, chars after the position 1024 are not commented anymore. Is there a workaround in the meantime?
Comment 2 Médéric Boquien 2012-01-30 08:53:43 UTC
Reassigned to kate as the problem comes from it rather than kile.
Comment 3 Dominik Haumann 2012-01-30 09:34:39 UTC
Of course there is a workaround: Change the auto-wrap column from 1024 to 10000 or whatever value you prefer.

Wrapped lines not having a comment character anymore is indeed a problem. Just the same as with static word-wrap at column 80...
Comment 4 Médéric Boquien 2012-01-30 09:39:02 UTC
Ah indeed, i could not find the option, i expected it to be in one of the wrapping option groups. I have found it now.
Comment 5 Hugo Costelha 2012-02-06 17:41:01 UTC
I changed the value to 0 and it worked just fine.

Maybe adding a tip or help message saying you can change it to 0 in order not to impose such limit would be just fine.
Comment 6 Ian McDonald 2012-04-29 19:46:34 UTC
Can someone say where the option is so that I can alter? This is also a relatively new bug/regression as didn't have it in Ubuntu 11.10 but do have it in Ubuntu 12.04
Comment 7 Hugo Costelha 2012-04-30 08:16:15 UTC
(In reply to comment #6)
> Can someone say where the option is so that I can alter? This is also a
> relatively new bug/regression as didn't have it in Ubuntu 11.10 but do have
> it in Ubuntu 12.04

Settings -> Configure Kate -> Open/Save -> Line Lenght Limit
Comment 8 alexis.gm 2012-05-14 18:58:30 UTC
The work around does not work for me.   I tried setting the line lenght limit to 0 and to 10000 in both kile and kate, but I still can't edit my file.   Even more frustrating is that now when I open the file with the long lines, no message appears at all, and the file appears to be locked.  

This bug existed for me with kubuntu 11.10 and now with kubuntu 12.04.
Comment 9 Christoph Cullmann 2012-07-05 15:33:57 UTC
Tools -> Read only mode
Turn that off after loading, and you can edit.
Otherwise, increase the limit.