Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
7781-Fix-change-doc-tag.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 7781-Fix-change-doc-tag.patch of Package erlang
From a012b1b8cec5583329c5e5f3e821ed1531819fb0 Mon Sep 17 00:00:00 2001 From: Rickard Green <rickard@erlang.org> Date: Wed, 8 Feb 2023 19:21:24 +0100 Subject: [PATCH 1/2] Fix change doc tag --- lib/erl_docgen/priv/dtd/common.dtd | 4 ++-- lib/erl_docgen/priv/xsl/db_pdf.xsl | 2 +- lib/erl_docgen/priv/xsl/db_pdf_params.xsl | 17 +++++++++++++++++ 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/lib/erl_docgen/priv/dtd/common.dtd b/lib/erl_docgen/priv/dtd/common.dtd index 861a7e4c3e..b8fc0e3af4 100644 --- a/lib/erl_docgen/priv/dtd/common.dtd +++ b/lib/erl_docgen/priv/dtd/common.dtd @@ -34,8 +34,8 @@ <!ELEMENT code (#PCDATA|anno)* > <!ATTLIST code type (erl|c|none) "none" > <!ELEMENT quote (p)* > -<!ELEMENT warning (%block;|quote|br|marker)* > -<!ELEMENT note (%block;|quote|br|marker)* > +<!ELEMENT warning (%block;|quote|br|marker|change)* > +<!ELEMENT note (%block;|quote|br|marker|change)* > <!ELEMENT change (%block;|quote|br|marker)* > <!ELEMENT dont (%block;|quote|br|marker)* > <!ELEMENT do (%block;|quote|br|marker)* > diff --git a/lib/erl_docgen/priv/xsl/db_pdf.xsl b/lib/erl_docgen/priv/xsl/db_pdf.xsl index aaa0536601..9320d7a20b 100644 --- a/lib/erl_docgen/priv/xsl/db_pdf.xsl +++ b/lib/erl_docgen/priv/xsl/db_pdf.xsl @@ -1149,7 +1149,7 @@ <xsl:template match="change"> <xsl:param name="partnum"/> <fo:block xsl:use-attribute-sets="note-warning"> - <fo:block xsl:use-attribute-sets="note-title"> + <fo:block xsl:use-attribute-sets="change-title"> <xsl:text>Change:</xsl:text> </fo:block> <fo:block xsl:use-attribute-sets="note-warning-content"> diff --git a/lib/erl_docgen/priv/xsl/db_pdf_params.xsl b/lib/erl_docgen/priv/xsl/db_pdf_params.xsl index 9bfa991b54..e0d0ae76fd 100644 --- a/lib/erl_docgen/priv/xsl/db_pdf_params.xsl +++ b/lib/erl_docgen/priv/xsl/db_pdf_params.xsl @@ -327,6 +327,23 @@ <xsl:attribute name="margin-right">1mm</xsl:attribute> </xsl:attribute-set> + <xsl:attribute-set name="change-title"> + <xsl:attribute name="space-before">0.5em</xsl:attribute> + <xsl:attribute name="border-style">solid</xsl:attribute> + <xsl:attribute name="border-bottom-width">0mm</xsl:attribute> + <xsl:attribute name="border-color">#495057</xsl:attribute> + <xsl:attribute name="background-color">#4682b4</xsl:attribute> + <xsl:attribute name="font-weight">bold</xsl:attribute> + <xsl:attribute name="color">#fefefe</xsl:attribute> + <xsl:attribute name="padding-before">1mm</xsl:attribute> + <xsl:attribute name="padding-after">0.5mm</xsl:attribute> + <xsl:attribute name="padding-left">1mm</xsl:attribute> + <xsl:attribute name="padding-right">1mm</xsl:attribute> + <xsl:attribute name="margin-left">1mm</xsl:attribute> + <xsl:attribute name="margin-right">1mm</xsl:attribute> + <xsl:attribute name="font-size">1.33em</xsl:attribute> + </xsl:attribute-set> + <xsl:attribute-set name="module-header"> <xsl:attribute name="keep-with-next.within-page">always</xsl:attribute> <xsl:attribute name="space-after">2em</xsl:attribute> -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor