Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hello! I apologize for my belated reply.

    Aligning elements neatly isn’t done by PHP developers during dynamic content creation — it’ll cause a mess of the code, making it unreadable and difficult to maintain. You’ll find “correct” indentation here and there, but that only comes from templated code: HTML output with PHP mixin:

    <example>
    	<code><?php func() ?></code>
    </example>

    I urge you not to pursue neatness here. In fact, in your example, everything in and including <head>...</head> should have one extra tab in front of it, for <html> is its parent element at indention 0.

    If you wish, you can open the browser’s development tools and see the code neatly.

    Please bear in mind only developers tend to read the HTML code, and they should understand it’s futile to clean it up. It’s also impossible with The SEO Framework without modifying the buffer (something you shouldn’t do for a large number of reasons); ergo, I’m marking this topic resolved.

    Thread Starter minhduc.dev

    (@ducpl)

    Thanks I solved it myself

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Tag line indent’ is closed to new replies.