aboutsummaryrefslogtreecommitdiff
path: root/lib/heuristics-processor.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/heuristics-processor.js')
-rw-r--r--lib/heuristics-processor.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/heuristics-processor.js b/lib/heuristics-processor.js
deleted file mode 100644
index 0e3c97d..0000000
--- a/lib/heuristics-processor.js
+++ /dev/null
@@ -1,26 +0,0 @@
-exports.HeuristicsProcessor = HeuristicsProcessor;
-
-function HeuristicsProcessor() {
- function processHeuristics(document) {
- for (var i = 0; i < document.value.children.length; i++) {
- var element = document.value.children[i];
- switch (element.type) {
- case 'paragraph':
- document.value.children[i] = processParagraph(document.value.children[i]);
- break;
- }
- }
- return document;
- }
-
- function processParagraph(element) {
- if (element.alignment == 'center' && !element.styleName) {
- element.styleName = "CenteredHeading";
- }
- return element;
- }
-
- return {
- processHeuristics: processHeuristics
- }
-} \ No newline at end of file