You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/06/09 17:02:58 UTC

[camel] branch main updated: CAMEL-18181: prevent non-printable characters from breaking the doc generation

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 616b465f241 CAMEL-18181: prevent non-printable characters from breaking the doc generation
616b465f241 is described below

commit 616b465f2413498ce91c8d96028b5e1cf6f7d2b8
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Jun 9 12:17:06 2022 -0300

    CAMEL-18181: prevent non-printable characters from breaking the doc generation
---
 .../main/java/org/apache/camel/maven/packaging/UpdateReadmeMojo.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/UpdateReadmeMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/UpdateReadmeMojo.java
index 45d4959a4ca..768d87938de 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/UpdateReadmeMojo.java
+++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/UpdateReadmeMojo.java
@@ -560,7 +560,7 @@ public class UpdateReadmeMojo extends AbstractGeneratorMojo {
             boolean copy = false;
             if (updated || RELOCATE_MANUAL_ATTRIBUTES) {
                 outer: for (String line : lines) {
-                    if (!copy && line.isEmpty()) {
+                    if (!copy && line.trim().isEmpty()) {
                         copy = true;
                     } else if (copy) {