You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2023/01/20 22:51:37 UTC
[maven-doxia] branch master updated: [DOXIA-689] Restore incorrectly removed (HTML5) attributes
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-doxia.git
The following commit(s) were added to refs/heads/master by this push:
new 7509feb0 [DOXIA-689] Restore incorrectly removed (HTML5) attributes
7509feb0 is described below
commit 7509feb03af4d4fb7d48b4f9ef38ff5c1a17a149
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Fri Jan 20 23:51:11 2023 +0100
[DOXIA-689] Restore incorrectly removed (HTML5) attributes
---
.../src/main/java/org/apache/maven/doxia/sink/impl/SinkUtils.java | 1 +
.../src/main/java/org/apache/maven/doxia/module/fml/FmlParser.java | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/doxia-core/src/main/java/org/apache/maven/doxia/sink/impl/SinkUtils.java b/doxia-core/src/main/java/org/apache/maven/doxia/sink/impl/SinkUtils.java
index 4b4218fb..a503b974 100644
--- a/doxia-core/src/main/java/org/apache/maven/doxia/sink/impl/SinkUtils.java
+++ b/doxia-core/src/main/java/org/apache/maven/doxia/sink/impl/SinkUtils.java
@@ -123,6 +123,7 @@ public class SinkUtils {
SinkEventAttributes.HEIGHT,
SinkEventAttributes.ISMAP,
SinkEventAttributes.SRC,
+ SinkEventAttributes.USEMAP,
SinkEventAttributes.WIDTH
};
diff --git a/doxia-modules/doxia-module-fml/src/main/java/org/apache/maven/doxia/module/fml/FmlParser.java b/doxia-modules/doxia-module-fml/src/main/java/org/apache/maven/doxia/module/fml/FmlParser.java
index 6073bc9e..01785a52 100644
--- a/doxia-modules/doxia-module-fml/src/main/java/org/apache/maven/doxia/module/fml/FmlParser.java
+++ b/doxia-modules/doxia-module-fml/src/main/java/org/apache/maven/doxia/module/fml/FmlParser.java
@@ -576,7 +576,9 @@ public class FmlParser extends AbstractXmlParser implements FmlMarkup {
* @param sink The sink to consume the event.
*/
private void writeTopLink(Sink sink) {
- sink.paragraph();
+ SinkEventAttributeSet atts = new SinkEventAttributeSet();
+ atts.addAttribute(SinkEventAttributeSet.STYLE, "text-align: right;");
+ sink.paragraph(atts);
sink.link("#top");
sink.text("[top]");
sink.link_();