VirtualBox

Changeset 101372 in vbox for trunk/src/VBox/Main/idl


Ignore:
Timestamp:
Oct 6, 2023 2:00:10 AM (16 months ago)
Author:
vboxsync
Message:

Main/midl.xsl: Deal with quotes in cpp/line attributes. bugref:10384

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/midl.xsl

    r98103 r101372  
    110110<xsl:template match="cpp">
    111111  <xsl:text>cpp_quote("</xsl:text>
    112   <xsl:value-of select="@line"/>
     112  <xsl:call-template name="string-replace">
     113    <xsl:with-param name="haystack" select="@line"/>
     114    <xsl:with-param name="needle">&quot;</xsl:with-param>
     115    <xsl:with-param name="replacement">\&quot;</xsl:with-param>
     116  </xsl:call-template>
    113117  <xsl:text>")&#x0A;&#x0A;</xsl:text>
    114118</xsl:template>
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette