View Single Post
Old 12-29-2015, 09:11 AM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,760
Karma: 206758686
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Bosparan View Post
Hi guys,

I'm having an issue with the prettify functionality since installing 0.9.2:
The "Format code on Save" option is broken. I can safe all day without results. Always have to do it manually (Tools > Format...).
It's not broken. There IS no "Pretty Print/Prettify/Beautify on Save" any more. That's why the checkbox is no longer available in the Clean Source settings. This change was in the 0.9.2 release announcement. The only current Open/Save formatting option is whether or not your code gets automatically "mended" (a minimally invasive repair--which will rarely, if ever, alter well-formed code). All Prettifying (which is invasive and can potentially affect rendering) is done manually at the user's request through the Tools menu, the Code View context menu, or an assigned keyboard shortcut.

Quote:
Originally Posted by Bosparan View Post
A separate issue if you will (though probably no bug per se), is how <br/> tags are formatted. I've been using an ancient release (don't remember the exact version, several years out of date) until fairly recently, when I upgraded to 0.9.1 and now to 0.9.2.
Previously, it would display a paragraph with <br /> Tags inside on multiple lines (by breaking line behind the <br /> Tag).
With 0.9.1 it added an additional lines, making it hard to distinguish from regular paragraphs.
With 0.9.2 no linebreaks are added, making it harder to read.

If possible I'd appreciate having it back to the original behavior (or to have an option for it if this change was intentional).
Example results after prettifying in codeview:

Ancient Version (and how I prefer it):
<p>This<br />
is<br />
an<br />
Example</p>

Version 0.9.1
<p>This<br />

is<br />

an<br />

Example</p>

Version 0.9.2
<p>This<br />is<br />an<br />Example</p>

Cheers,
Bosparan
We'll take it under advisement. Extra lines are still added after br tags in divs and blockquotes and the like, but for the purpose of Prettifying, p tags are currently being treated as "inline" WRT br tags.

Last edited by DiapDealer; 12-29-2015 at 09:19 AM.
DiapDealer is offline   Reply With Quote