Remove <emphasis> to work around DocBook bug
It was determined (through painful trial and error) that after the upgrade to DocBook 5 and the gradle-docbook-reference plugin, that <emphasis> elements embedded within <programlisting> elements causes NullPointerExceptions during processing. This change eliminates these <emphasis> elements to work around the problem. This means a slight degradation in presentation for the affected areas of the reference documentation. After some research, it is not clear what other workarounds may be possible that leave the text actually emphasized.
This commit is contained in:
@@ -161,7 +161,7 @@ public class InstantiationTracingBeanPostProcessor implements BeanPostProcessor
|
||||
<lineannotation>// simply return the instantiated bean as-is</lineannotation>
|
||||
public Object postProcessBeforeInitialization(Object bean, String beanName)
|
||||
throws BeansException {
|
||||
return bean; <lineannotation>// we could potentially return <emphasis>any</emphasis> object reference here...</lineannotation>
|
||||
return bean; <lineannotation>// we could potentially return any object reference here...</lineannotation>
|
||||
}
|
||||
|
||||
public Object postProcessAfterInitialization(Object bean, String beanName)
|
||||
@@ -351,10 +351,10 @@ org.springframework.scripting.groovy.GroovyMessenger@272961</programlisting>
|
||||
|
||||
<bean id="dataSource" destroy-method="close"
|
||||
class="org.apache.commons.dbcp.BasicDataSource">
|
||||
<property name="driverClassName" value="<emphasis role="bold">${jdbc.driverClassName}</emphasis>"/>
|
||||
<property name="url" value="<emphasis role="bold">${jdbc.url}</emphasis>"/>
|
||||
<property name="username" value="<emphasis role="bold">${jdbc.username}</emphasis>"/>
|
||||
<property name="password" value="<emphasis role="bold">${jdbc.password}</emphasis>"/>
|
||||
<property name="driverClassName" value="${jdbc.driverClassName}"/>
|
||||
<property name="url" value="${jdbc.url}"/>
|
||||
<property name="username" value="${jdbc.username}"/>
|
||||
<property name="password" value="${jdbc.password}"/>
|
||||
</bean></programlisting>
|
||||
|
||||
<para>The actual values come from another file in the standard Java
|
||||
@@ -472,7 +472,7 @@ dataSource.url=jdbc:mysql:mydb</programlisting>
|
||||
already non-null (presumably initialized by the constructors). In this
|
||||
example...</para>
|
||||
|
||||
<programlisting language="java">foo.fred.bob.sammy=123</programlisting>
|
||||
<programlisting>foo.fred.bob.sammy=123</programlisting>
|
||||
|
||||
<para>... the <literal>sammy</literal> property of the
|
||||
<literal>bob</literal> property of the <literal>fred</literal> property
|
||||
@@ -491,6 +491,7 @@ dataSource.url=jdbc:mysql:mydb</programlisting>
|
||||
configuration element:</para>
|
||||
|
||||
<programlisting language="xml"><context:property-override location="classpath:override.properties"/></programlisting>
|
||||
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user