This is an automated email from the ASF dual-hosted git repository.
tallison pushed a commit to branch branch_2x
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/branch_2x by this push:
new ba6a2e3bd TIKA-4315 -- checkstyle
ba6a2e3bd is described below
commit ba6a2e3bd68a09852889961643fafc809f8eb1da
Author: tallison <[email protected]>
AuthorDate: Thu Oct 24 08:33:19 2024 -0400
TIKA-4315 -- checkstyle
---
.../tika/parser/microsoft/ooxml/xps/XPSPageContentHandler.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/ooxml/xps/XPSPageContentHandler.java
b/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/ooxml/xps/XPSPageContentHandler.java
index 41a4b029b..5312b073b 100644
---
a/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/ooxml/xps/XPSPageContentHandler.java
+++
b/tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/ooxml/xps/XPSPageContentHandler.java
@@ -463,7 +463,8 @@ class XPSPageContentHandler extends DefaultHandler {
// If this is the first glyph use hard coded estimate
width += ESTIMATE_GLYPH_WIDTH;
} else {
- // If advance is 0.0 it is probably the last glyph in
the run, we don't know how wide it is so we use the average of the previous
widths as an estimate
+ // If advance is 0.0 it is probably the last glyph in
the run, we don't know how wide it is
+ // so we use the average of the previous widths as an
estimate
width += width / i;
}
} else {
@@ -477,7 +478,8 @@ class XPSPageContentHandler extends DefaultHandler {
final static class GlyphIndex {
// The index of the glyph in the font
private final int index;
- // The placement of the glyph that follows relative to the origin of
the current glyph. Measured as a multiple of the fonts em-size.
+ // The placement of the glyph that follows relative to the origin of
the current glyph.
+ // Measured as a multiple of the fonts em-size.
// Should be multiplied by the font em-size to get a value that can be
compared across GlyphRuns
// Will be zero for the last glpyh in a glyph run
private final float advance;