NataBilya / zen-coding

Automatically exported from code.google.com/p/zen-coding
0 stars 0 forks source link

New filter proposal: indent control #120

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I think of two filters that can be useful:

1. The filter that do not create any indentation, like div*3 
would create divs on a single line and so on.

2. Filer for creating indentation without whitespaces, would 
create something like that:

<div
  ><ul
    ><li>…</li
    ><li>…</li
    ><li>…</li
  ></ul
></div>

It can be useful for inline-block elements when we don't want 
any whitespace, but want to preserve indentation.

Original issue reported on code.google.com by kizmarh on 25 Feb 2010 at 4:55

GoogleCodeExporter commented 8 years ago
That sounds like a good idea kizmarh.

Original comment by webs%fla...@gtempaccount.com on 3 Mar 2010 at 1:54

GoogleCodeExporter commented 8 years ago
@kizmarh:
DIV is a block element. Since that, <div> tags, IMO, always must be 
opened/closed at
new line.

Original comment by mkTUMS on 5 Mar 2010 at 3:33

GoogleCodeExporter commented 8 years ago
@mkTUMS:
In a usual environment — yes, of course.
But I propose a "filter" to strip all the indentations and newlines in a 
case we don't need them at all. There can be such cases, you know.

Original comment by kizmarh on 5 Mar 2010 at 3:45

GoogleCodeExporter commented 8 years ago
Added new filter 's' (in github repo)

Original comment by serge....@gmail.com on 5 Dec 2010 at 4:06