[Phpmyadmin-devel] about the "\n"

Dieter Adriaenssens dieter.adriaenssens at gmail.com
Sat Apr 28 11:43:52 CEST 2012


2012/4/28 Dieter Adriaenssens <dieter.adriaenssens at gmail.com>:
> 2012/4/28 Rouslan Placella <rouslan at placella.com>:
>> On 28/04/12 08:52, Marc Delisle wrote:
>>> Le 2012-04-27 16:39, Dieter Adriaenssens a écrit :
>>>> Op 27 april 2012 21:11 heeft Marc Delisle <marc at infomarc.info> het
>>>> volgende geschreven:
>>>>> Le 2012-04-27 14:55, Rouslan Placella a écrit :
>>>>>> On 27/04/12 14:26, Marc Delisle wrote:
>>>>>>> Hi,
>>>>>>> When touching a piece of code, if you see a "\n" generated for HTML,
>>>>>>> it's pretty much safe to remove it (if proven otherwise, we'll build a
>>>>>>> wiki page documenting those cases).
>>>>>>>
>>>>>>> The reason was to generate more readable HTML code; now that we
>>>>>>> (hopefully) use Firebug to look at the generated HTML, these "\n" are no
>>>>>>> longer needed.
>>>>>>>
>>>>>>
>>>>>> I'm not sure how good of an idea this is. What about the casual user
>>>>>> that might want to have a stab at figuring out where something is going
>>>>>> wrong, for example? Such a user may not have firebug.
>>>>>>
>>>>>> Bye,
>>>>>> Rouslan
>>>>>
>>>>> It's mostly older parts of the codebase that are using "\n", so this
>>>>> casual user already has this problem.
>>>>
>>>> For esthetic reasons I prefer to use the "\n", the produced html looks
>>>> cleaner and better structured. It's a bit like using a coding style
>>>> (indentation, ...) to have readable code.
>>>
>>> Dieter,
>>> aren't you using Firebug to look at the HTML?

 I've used it before (or something similar), especially when I need to
tinker with some layout and css.
 On my Windows box at work I have the TidyHTML plugin installed, which
 kicks in when you look at the HTML source.
 So far this fulfilled my needs, but I guess it will be a usefull tool
when reviewing Rouslan's code this summer. ;)

-- 
Kind regards,

Dieter Adriaenssens




More information about the Developers mailing list