Changeset a804944


Ignore:
Timestamp:
01/19/2024 09:39:35 PM (3 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
12.1, ken/TL2024, lazarus, plabs/newcss, rahul/power-profiles-daemon, trunk, xry111/llvm18
Children:
ab4fdfc
Parents:
c8be252
git-author:
Pierre Labastie <pierre.labastie@…> (01/19/2024 09:34:28 PM)
git-committer:
Pierre Labastie <pierre.labastie@…> (01/19/2024 09:39:35 PM)
Message:

Remove all "&#" characters and replace with utf-8

Location:
stylesheets
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/dump-commands.xsl

    rc8be252 ra804944  
    1 <?xml version="1.0"?>
     1<?xml version="1.0" encoding="UTF-8"?>
    22<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    33    xmlns:exsl="http://exslt.org/common"
     
    4949        <xsl:when test="@role = 'nodump'"/>
    5050        <xsl:when test="@role = 'root'">
    51           <xsl:text>&#xA;</xsl:text>
    52           <xsl:text># Run this as root</xsl:text>
     51          <xsl:text>
     52# Run this as root</xsl:text>
    5353          <xsl:apply-templates select="userinput"/>
    54           <xsl:text># End root commands</xsl:text>
    55           <xsl:text>&#xA;</xsl:text>
     54          <xsl:text># End root commands
     55</xsl:text>
    5656        </xsl:when>
    5757        <xsl:otherwise>
     
    6363
    6464  <xsl:template match="userinput">
    65     <xsl:text>&#xA;</xsl:text>
     65    <xsl:text>
     66</xsl:text>
    6667    <xsl:if test=".//replaceable">
    6768      <xsl:text># This block must be edited to suit your needs.</xsl:text>
    6869    </xsl:if>
    69     <xsl:text>&#xA;</xsl:text>
     70    <xsl:text>
     71</xsl:text>
    7072    <xsl:apply-templates/>
    71     <xsl:text>&#xA;</xsl:text>
     73    <xsl:text>
     74</xsl:text>
    7275    <xsl:if test=".//replaceable">
    7376      <xsl:text># End of editable block.</xsl:text>
    7477    </xsl:if>
    75     <xsl:text>&#xA;</xsl:text>
     78    <xsl:text>
     79</xsl:text>
    7680  </xsl:template>
    7781
  • stylesheets/lfs-xsl/pdf.xsl

    rc8be252 ra804944  
    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. The character in the
     55         select attribute is a zero width space, encoded in utf-8-->
     56  <xsl:param name="ulink.hyphenate" select="'​'"/>
    5657
    5758    <!-- List of characters to allow ulink URLs, and supported inline tags,
  • stylesheets/lfs-xsl/pdf/lfs-lists.xsl

    rc8be252 ra804944  
    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"
     
    5050                  keep-together.within-column="always" font-weight="bold"
    5151                  keep-with-next.within-column="always" text-align="left">
    52           <xsl:text>&#x2022;   </xsl:text>
     52          <xsl:text>   </xsl:text>
    5353          <xsl:apply-templates select="term"/>
    5454        </fo:block>
  • stylesheets/lfs-xsl/xhtml/lfs-mixed.xsl

    rc8be252 ra804944  
    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 character in the <td> element is a non breaking space
     298             (unicode A0), encoded in utf-8 -->
     299          <td> </td>
    298300        </xsl:when>
    299301        <xsl:otherwise/>
  • stylesheets/patcheslist.xsl

    rc8be252 ra804944  
    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  <xsl:template match="/">
    25     <xsl:text>#! /bin/bash&#x0a;&#x0a;</xsl:text>
    26     <xsl:text>function copy
     25    <xsl:text>#! /bin/bash
     26
     27function copy
    2728{
    2829   cp $1 $2 >>copyerrs 2>&amp;1
    29 }&#x0a;&#x0a;</xsl:text>
    30       <!-- Create dest.dir if it don't exist -->
    31     <xsl:text>mkdir -p </xsl:text>
     30}
     31
     32# Create dest.dir if it doesn't exist
     33# Change to it
     34# Remove old patches and possible list of missing patches
     35# Ensure correct ownership
     36
     37mkdir -p </xsl:text>
    3238    <xsl:value-of select="$dest.dir"/>
    33     <xsl:text> &amp;&amp;&#x0a;</xsl:text>
    34     <xsl:text>cd </xsl:text>
     39    <xsl:text> &amp;&amp;
     40cd </xsl:text>
    3541    <xsl:value-of select="$dest.dir"/>
    36     <xsl:text> &amp;&amp;&#x0a;&#x0a;</xsl:text>
    37       <!-- Remove old patches and possible list of missing patches-->
    38     <xsl:text>rm -f *.patch copyerrs &amp;&amp;&#x0a;&#x0a;</xsl:text>
     42    <xsl:text> &amp;&amp;
     43
     44    rm -f *.patch copyerrs &amp;&amp;
     45
     46</xsl:text>
    3947    <xsl:apply-templates/>
    40       <!-- Ensure correct ownership -->
    41     <xsl:text>&#x0a;chgrp lfswww *.patch &amp;&amp;&#x0a;</xsl:text>
    42     <xsl:text>if [ `wc -l copyerrs|sed 's/ *//' |cut -f1 -d' '` -gt 0 ]; then
     48    <xsl:text>
     49chgrp lfswww *.patch &amp;&amp;
     50if [ `wc -l copyerrs|sed 's/ *//' |cut -f1 -d' '` -gt 0 ]; then
    4351  mail -s "Missing BLFS patches" blfs-book@lists.linuxfromscratch.org &lt; copyerrs
    44 fi</xsl:text>
    45     <xsl:text>&#x0a;exit&#x0a;</xsl:text>
     52fi
     53exit</xsl:text>
    4654  </xsl:template>
    4755
     
    100108      </xsl:choose>
    101109      <xsl:value-of select="$patch.name"/>
    102       <xsl:text> . &#x0a;</xsl:text>
     110      <xsl:text> .
     111</xsl:text>
    103112    </xsl:if>
    104113  </xsl:template>
  • stylesheets/wget-list.xsl

    rc8be252 ra804944  
    1 <?xml version='1.0' encoding='ISO-8859-1'?>
     1<?xml version='1.0' encoding='UTF-8'?>
    22
    33<!-- Create a list of upstream URLs for packages and patches to be used
     
    6666        </xsl:otherwise>
    6767      </xsl:choose>
    68       <xsl:text>&#x0a;</xsl:text>
     68      <xsl:text>
     69</xsl:text>
    6970    </xsl:if>
    7071  </xsl:template>
     
    8889    -->
    8990      <xsl:value-of select="@url"/>
    90       <xsl:text>&#x0a;</xsl:text>
     91      <xsl:text>
     92</xsl:text>
    9193    </xsl:if>
    9294  </xsl:template>
Note: See TracChangeset for help on using the changeset viewer.