- From: Dave Raggett <dsr@w3.org>
- Date: Thu, 24 Nov 2011 10:59:45 +0000
- To: Brian Chu <bchu@infinitesource.ca>
- CC: html-tidy@w3.org
- Message-ID: <4ECE23A1.5000303@w3.org>
Hi Brian, I am copying your message to the html-tidy list. Thanks for the report. On 23/11/11 18:29, Brian Chu wrote: > Hi, Dave. > > I love your tidy utility. > I have found a bug with formating <pre><code> tags using "auto indent" > as shown below. I have also included my tidy configuration at the end. > As you can see, the starting and ending <pre> and <code> indentation > do not match in terms of indentation position. > > > ------------------------------------------ > ... > <ul> > <li> > <span class="table" id="pacforward">Enable Network Packet Forwarding > on the Router Server</span><br> > <pre> > <code> > <span class="comment"># Turning ON Packet Forwarding on the LVS > Routers.</span> > <span class="comment"># See <a > href="http://www.centos.org/docs/4/html/rh-cs-en-4/s1-lvs-forwarding.html">http://www.centos.org/docs/4/html/rh-cs-en-4/s1-lvs-forwarding.html</a> > for more info.</span> > [root@localhost ~]# <span class="hilite">echo 1 > > /proc/sys/net/ipv4/ip_forward</span> > > ... Configure Piranha... > > <span class="comment"># Restart Network service to reflect the > changes.</span> > [root@localhost ~]# <span class="hilite">service network > restart</span> > </code> > </pre><span class="hilite">Try to restart the network. For CentOS6, it > means right click on the Network icon on the top task bar.</span><br> > <br> > You can also turn ON IP forwarding via sysctl as shown below:<br> > <span class="table"># Turning ON Packet Forwarding on the LVS Routers > via "/sbin/sysctl".</span> > <pre> > <code> > <span class="comment"># Check the current setting...</span> > [root@localhost ~]# /sbin/sysctl net.ipv4.ip_forward > net.ipv4.ip_forward = 0m > <span class="comment"># Turn on IP packet forwarding...</span> > [root@localhost ~]# /sbin/sysctl -w net.ipv4.ip_forward=1 > net.ipv4.ip_forward = 1 > <span class="comment"># Check the current setting again...</span> > [root@localhost ~]# /sbin/sysctl net.ipv4.ip_forward > net.ipv4.ip_forward = 1 > </code> > </pre> > </li> > ... > ------------------------------------------ > > indent: auto > indent-spaces: 1 > wrap: 572 > markup: yes > output-xml: no > input-xml: no > show-warnings: yes > numeric-entities: yes > quote-marks: yes > quote-nbsp: yes > quote-ampersand: no > break-before-br: no > uppercase-tags: no > uppercase-attributes: no > char-encoding: latin1 > new-inline-tags: cfif, cfelse, math, mroot, > mrow, mi, mn, mo, msqrt, mfrac, msubsup, munderover, > munder, mover, mmultiscripts, msup, msub, mtext, > mprescripts, mtable, mtr, mtd, mth > new-blocklevel-tags: cfoutput, cfquery > new-empty-tags: cfelse > > ------------------------------------------ > > > > > Thanks, > > > *Brian Chu* > Email bchu@infinitesource.ca > -- Dave Raggett<dsr@w3.org> http://www.w3.org/People/Raggett
Received on Thursday, 24 November 2011 11:00:18 UTC