Changeset 2a26a4f5


Ignore:
Timestamp:
01/18/2024 07:42:26 PM (3 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
12.1, 12.1-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
Children:
7152faa
Parents:
9512d6c
git-author:
Pierre Labastie <pierre.labastie@…> (01/18/2024 07:35:28 PM)
git-committer:
Pierre Labastie <pierre.labastie@…> (01/18/2024 07:42:26 PM)
Message:

Remove all &#xxx; occurences

  • replace some characters by their utf-8 encoded equivalent (and change encoding in the <?xml?> line
  • replace &#xa; with a true newline char. This is somewhat more readable anyway.
Location:
stylesheets
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/dump-commands.xsl

    r9512d6c r2a26a4f5  
    88
    99  <xsl:variable name="newline">
    10     <xsl:text>&#xA;</xsl:text>
     10    <xsl:text>
     11</xsl:text>
    1112  </xsl:variable>
    1213
  • stylesheets/lfs-xsl/pdf.xsl

    r9512d6c r2a26a4f5  
    1 <?xml version='1.0' encoding='ISO-8859-1'?>
     1<?xml version='1.0' encoding='UTF-8'?>
    22
    33<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     
    5252  <!-- Allow URLs to be automatically hyphenated.
    5353       We have expanded the support to several inline tags.
    54        See pdf/lfs-mixed.xsl -->
    55   <xsl:param name="ulink.hyphenate" select="'&#x200B;'"/>
     54       See pdf/lfs-mixed.xsl.
     55       Note: the argument in select= is a zero-width space
     56       (unicode 200b, encoded in utf-8)-->
     57  <xsl:param name="ulink.hyphenate" select="'​'"/>
    5658
    5759  <!-- List of characters to allow ulink URLs, and supported inline tags,
  • stylesheets/lfs-xsl/xhtml/lfs-mixed.xsl

    r9512d6c r2a26a4f5  
    1 <?xml version='1.0' encoding='ISO-8859-1'?>
     1<?xml version='1.0' encoding='UTF-8'?>
    22
    33<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     
    295295        </xsl:when>
    296296        <xsl:when test="$numcols &gt; 3">
    297           <td>&#160;</td>
     297        <!-- The space between <td> and </td> is a non breakable
     298             space (unicode A0) encoded in utf-8.-->
     299          <td> </td>
    298300        </xsl:when>
    299301        <xsl:otherwise/>
  • stylesheets/md5sum.xsl

    r9512d6c r2a26a4f5  
    1 <?xml version='1.0' encoding='ISO-8859-1'?>
     1<?xml version='1.0' encoding='UTF-8'?>
    22
    3 <!-- Create a md5 list for packages and pathces used. -->
     3<!-- Create a md5 list for packages and patches used. -->
    44
    55<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     
    3232
    3333      <!-- Add a newline -->
    34       <xsl:text>&#x0a;</xsl:text>
     34      <xsl:text>
     35</xsl:text>
    3536
    3637    </xsl:if>
     
    5657
    5758</xsl:stylesheet>
    58 
  • stylesheets/patcheslist.xsl

    r9512d6c r2a26a4f5  
    1 <?xml version='1.0' encoding='ISO-8859-1'?>
     1<?xml version='1.0' encoding='UTF-8'?>
    22<!DOCTYPE xsl:stylesheet [
    33 <!ENTITY % general-entities SYSTEM "../general.ent">
     
    2323}
    2424
    25 umask 002 &#x0a;&#x0a;</xsl:text>
     25umask 002
    2626
    27       <!-- Create dest.dir if it don't exist -->
    28     <xsl:text>install -d -m 775 -g lfswww </xsl:text>
     27# Create dest.dir if it doesn't exist
     28# Remove old patches
     29# Copy the patches
     30# Ensure correct ownership
     31install -d -m 775 -g lfswww </xsl:text>
    2932    <xsl:value-of select="$dest.dir"/>
    30     <xsl:text> &amp;&amp;&#x0a;</xsl:text>
    31     <xsl:text>cd </xsl:text>
     33    <xsl:text> &amp;&amp;
     34cd </xsl:text>
    3235    <xsl:value-of select="$dest.dir"/>
    33     <xsl:text> &amp;&amp;&#x0a;&#x0a;</xsl:text>
    34       <!-- Remove old patches -->
    35     <xsl:text>rm -f *.patch copyerrs &amp;&amp; &#x0a;&#x0a;</xsl:text>
     36    <xsl:text> &amp;&amp;
     37rm -f *.patch copyerrs &amp;&amp;
     38
     39</xsl:text>
    3640    <xsl:apply-templates/>
    37       <!-- Ensure correct owneship -->
    38     <xsl:text>&#x0a;chgrp lfswww *.patch &amp;&amp;&#x0a;</xsl:text>
    3941    <xsl:text>
     42chgrp lfswww *.patch &amp;&amp;
    4043if [ `wc -l copyerrs | sed 's/ *//' | cut -f1 -d' '` -gt 0 ]; then
    4144  mail -s "Missing LFS patches" lfs-book@lists.linuxfromscratch.org &lt; copyerrs
    42 fi&#x0a;&#x0a;</xsl:text>
     45fi
    4346
    44     <xsl:text>exit&#x0a;</xsl:text>
     47exit
     48</xsl:text>
    4549  </xsl:template>
    4650
     
    6064      </xsl:variable>
    6165      <xsl:text>copy /srv/www/www.linuxfromscratch.org/patches/downloads/</xsl:text>
    62           <xsl:value-of select="substring-before($patch.name2, '-0')"/>
     66      <xsl:value-of select="substring-before($patch.name2, '-0')"/>
    6367      <xsl:text>/</xsl:text>
    6468      <xsl:value-of select="$patch.name"/>
    65       <xsl:text> . &#x0a;</xsl:text>
     69      <xsl:text> .
     70</xsl:text>
    6671    </xsl:if>
    6772  </xsl:template>
  • stylesheets/wget-list.xsl

    r9512d6c r2a26a4f5  
    2929        </xsl:otherwise>
    3030      </xsl:choose>
    31       <xsl:text>&#x0a;</xsl:text>
     31      <xsl:text>
     32</xsl:text>
    3233    </xsl:if>
    3334  </xsl:template>
Note: See TracChangeset for help on using the changeset viewer.