Skip to content

indent and vertical-space issues (was With indent:yes and wrap:0, I don't want line breaks before inline elements) #486

Open
@LWillms

Description

@LWillms

This is the output of tidy 5.2 with the config options "indent: yes" and "wrap: 0":
(I have cut out only the beginning of the lines via Column Mode of Ultraedit, in order not to force a line wrap...)

`       <li>                                                       
         <h2>                                                     
           Erster Abschnitt: Ware und Geld                        
         </h2>                                                    
         <ol>                                                     
           <li>                                                   
             <a href="me23_049.htm">Erstes Kapitel. Die Ware</a>  
             <ol>                                                 
               <li>                                               
                 <a href="me23_049.htm#Kap_1_1">Die zwei Faktoren 
               </li>                                              
               <li>                                               
                 <a href="me23_049.htm#Kap_1_2">Doppelcharakter de
               </li>                                              
               <li>                                               
                 <a href="me23_049.htm#Kap_1_3">Die Wertform oder 
                 <ol type="A">                                    
                   <li>                                           
                     <a href="me23_049.htm#Kap_1_3_A">Einfache, ei
                     <ol>                                         
                       <li>                                       
                         <a href="me23_049.htm#Kap_1_3_A_1">Die be
                       </li>                                      
                       <li>                                       
                         <a href="me23_049.htm#Kap_1_3_A_2">Die re
                         <ol type="a">                            
                           <li>                                   
                             <a href="me23_049.htm#Kap_1_3_A_2_a">
                           </li>                                  
                           <li>                                   
                             <a href="me23_049.htm#Kap_1_3_A_2_b">
                           </li>                                  
                         </ol>                                    
                       </li>                                      
                       <li>                                       
                         <a href="me23_049.htm#Kap_1_3_A_3">Die äq
                       </li>                                      

and this is how I would like to look it:

  <li><h2>Erster Abschnitt: Ware und Geld</h2>                 
    <ol>                                                       
      <li><A href="me23_049.htm">Erstes Kapitel. Die Ware</A>  
        <ol>                                                   
          <li><A href="me23_049.htm#Kap_1_1">Die zwei Faktoren 
          <li><A href="me23_049.htm#Kap_1_2">Doppelcharakter de
          <li><A href="me23_049.htm#Kap_1_3">Die Wertform oder 
            <ol type=A>                                        
              <li><A href="me23_049.htm#Kap_1_3_A">Einfache, ei
                <ol>                                           
                  <li><A href="me23_049.htm#Kap_1_3_A_1">Die be
                  <li><A href="me23_049.htm#Kap_1_3_A_2">Die re
                    <ol type=a>                                
                      <li><A href="me23_049.htm#Kap_1_3_A_2_a">
                      <li><A href="me23_049.htm#Kap_1_3_A_2_b">
                    </ol>                                      
                  </li>                                        
                  <li><A href="me23_049.htm#Kap_1_3_A_3">Die äq
                  <li><A href="me23_049.htm#Kap_1_3_A_4">Das Ga
                </ol>                                          

This is from a table of contents to a document which spans 38 files (including this TOC file).

The same applies to the actual text pages where a typical paragraph as produced by tidy would look like this:

<p>
Looooooooooooooooooong text line - whole paragraph
</p>

whereas in my view it would look better and would be more maintainable like this:

<p>Looooooooooooooooooong text line - whole paragraph ..... </p>

To edit the text of such a paragraph, I can switch the editor to wrap mode, so that I can see the whole text in the editor window.

Is there a hidden (hidden for my eyes, that is) config option which lets me get this?
Or is this a case for a feature request?
If yes, should the way I want to have it be the default way?
Should it be alterable, with a new config option, to the way it is now, or the other way round?

I could cope with any way, but to me it seems to be more logical to have it my way...

Cheers,
L.W.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions