Created attachment 117835 [details] Much whitespace in Contents panel SUMMARY For many documents, the Contents panel is not useful, because too many whitespace is shown. It would be better to strip excess whitespace in every item. (QString::simplified()) STEPS TO REPRODUCE 1. Open e. g. http://www.vbg.de/SharedDocs/Medien-Center/DE/Broschuere/Themen/Bildschirm_und_Bueroarbeit/DGUV_Information_215-444_Sonnenschutz_im_Buero.pdf 2. Look at Contents panel 3. OBSERVED RESULT Entries look like (' for wasted space) 1''''''''''''''Sonnens 2.1'''''''''''''Ausric 2.4''''''''''''''''''A 4.1.1''''''''''''''''' EXPECTED RESULT Entries look like (' not needed ;) ) 1 Sonnenstrahlung 2.1 Ausrichtung des Gebäu... 2.4 Aufstellung eines Bi... 4.1.1 Außenjalousien ADDITIONAL INFORMATION Sorry, screenshot still without D18429.
Personally, I don't see why we should mangle what the document has in it.
I see that this makes it easier to read a document (sometimes). It makes sense to preserve the true contents of a document (e. g. to test some LaTeX output), but it would be nice to have this as option, similar to "Draw border arround Links".
On the other hand Adobe Reader shows this without lots of space, so needs some investigation as to waht we could do
(In reply to Albert Astals Cid from comment #3) > Adobe Reader [...] Ah, that is why PDFs are deployed with such excessive whitespace in the TOC. Then Okular should probably not silently remove the whitespace, but place some ugly but short whitespace-stripped-characters. The tooltip would explain this character, because it would show the original string.