Skip to content

Commit

Permalink
Fix new whitespace issues
Browse files Browse the repository at this point in the history
- 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 <[email protected]>
  • Loading branch information
stweil committed Aug 23, 2018
1 parent 07acc2b commit 63965bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/training/validate_javanese.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*
**********************************************************************/

#include "validate_javanese.h"
#include "errcode.h"
#include "tprintf.h"
Expand Down Expand Up @@ -75,7 +75,7 @@ Validator::CharClass ValidateJavanese::UnicodeToCharClass(char32 ch) const {
if (off == 0x33) return CharClass::kNukta; // A9B3 CECAK TELU
if (off == 0x34) return CharClass::kMatraPiece; // A9B4 TARUNG two part vowels
if (off <= 0x39) return CharClass::kMatra;
if (off <= 0x3a) return CharClass::kMatraPiece; // A9BA TALING
if (off <= 0x3a) return CharClass::kMatraPiece; // A9BA TALING
if (off <= 0x3d) return CharClass::kMatra;
if (off <= 0x3f) return CharClass::kNukta; // A9BE-A9BF PENGKAL-CAKRA medial consonants
if (off == 0x40) return CharClass::kVirama; // A9C0 PANGKON
Expand Down Expand Up @@ -266,4 +266,4 @@ bool ValidateJavanese::ConsumeVowelIfValid() {
return true;
}

} // namespace tesseract
} // namespace tesseract
6 changes: 3 additions & 3 deletions src/training/validate_javanese.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*
**********************************************************************/

#ifndef TESSERACT_TRAINING_VALIDATE_JAVANESE_H_
#define TESSERACT_TRAINING_VALIDATE_JAVANESE_H_

Expand All @@ -24,7 +24,7 @@

namespace tesseract {

// Subclass of Validator that validates and segments Javanese scripts
// Subclass of Validator that validates and segments Javanese scripts

class ValidateJavanese : public Validator {
public:
Expand Down Expand Up @@ -60,4 +60,4 @@ class ValidateJavanese : public Validator {

} // namespace tesseract

#endif // TESSERACT_TRAINING_VALIDATE_JAVANESE_H_
#endif // TESSERACT_TRAINING_VALIDATE_JAVANESE_H_

0 comments on commit 63965bd

Please sign in to comment.