Skip to content

Commit 63965bd

Browse files
committed
Fix new whitespace issues
- add linefeed after last line - remove blanks at line endings This fixes some warnings from clang: src/training/validate_javanese.h:63:51: warning: no newline at end of file [-Wnewline-eof] src/training/validate_javanese.cpp:269:26: warning: no newline at end of file [-Wnewline-eof] Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 07acc2b commit 63965bd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/training/validate_javanese.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*
1717
**********************************************************************/
18-
18+
1919
#include "validate_javanese.h"
2020
#include "errcode.h"
2121
#include "tprintf.h"
@@ -75,7 +75,7 @@ Validator::CharClass ValidateJavanese::UnicodeToCharClass(char32 ch) const {
7575
if (off == 0x33) return CharClass::kNukta; // A9B3 CECAK TELU
7676
if (off == 0x34) return CharClass::kMatraPiece; // A9B4 TARUNG two part vowels
7777
if (off <= 0x39) return CharClass::kMatra;
78-
if (off <= 0x3a) return CharClass::kMatraPiece; // A9BA TALING
78+
if (off <= 0x3a) return CharClass::kMatraPiece; // A9BA TALING
7979
if (off <= 0x3d) return CharClass::kMatra;
8080
if (off <= 0x3f) return CharClass::kNukta; // A9BE-A9BF PENGKAL-CAKRA medial consonants
8181
if (off == 0x40) return CharClass::kVirama; // A9C0 PANGKON
@@ -266,4 +266,4 @@ bool ValidateJavanese::ConsumeVowelIfValid() {
266266
return true;
267267
}
268268

269-
} // namespace tesseract
269+
} // namespace tesseract

src/training/validate_javanese.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*
1717
**********************************************************************/
18-
18+
1919
#ifndef TESSERACT_TRAINING_VALIDATE_JAVANESE_H_
2020
#define TESSERACT_TRAINING_VALIDATE_JAVANESE_H_
2121

@@ -24,7 +24,7 @@
2424

2525
namespace tesseract {
2626

27-
// Subclass of Validator that validates and segments Javanese scripts
27+
// Subclass of Validator that validates and segments Javanese scripts
2828

2929
class ValidateJavanese : public Validator {
3030
public:
@@ -60,4 +60,4 @@ class ValidateJavanese : public Validator {
6060

6161
} // namespace tesseract
6262

63-
#endif // TESSERACT_TRAINING_VALIDATE_JAVANESE_H_
63+
#endif // TESSERACT_TRAINING_VALIDATE_JAVANESE_H_

0 commit comments

Comments
 (0)