summaryrefslogtreecommitdiffstats
path: root/parsers
diff options
context:
space:
mode:
authorrsiddharth <rsiddharth@ninthfloor.org>2012-11-10 11:29:31 +0530
committerrsiddharth <rsiddharth@ninthfloor.org>2012-11-10 11:29:31 +0530
commitceed73fa063ffb3b72d21c8a8800122c115acc58 (patch)
treee6519430ea904e1e7842b17e1ad177a17ef5bfb4 /parsers
parent00a25a7ef03e25864019ef2e4f3fe5813ec292e9 (diff)
marked-up files should have a '.scruffy' extension from now on. This
commit is an un-stable commit. It has bugs. removed: io/PresentFile.java (moved to status/PresentFile.java) added: conversion/CreateHtmlFile.java (creates a corresponding '.html' file for a given '.scruffy' marked-up file) (needs some fine-tuning) status/PresentFile.java (see above) modified: conversion/ConvertFile.java (CreatHtmlFile object takes care of producing a corresponding html 'File') conversion/FileSieve.java (regex modified to reflect the '.scruffy' extension) index/IndexCreator.java (edits to reflect the '.scruffy' extension) parsers/BackButton.java (edit to reflect the '.scruffy' extension) parsers/DocumentName.java (edit to reflect the package change for PresentFile class) parsers/Header.java (edit to reflect the package change for PresentFile class) todo (updated todo)
Diffstat (limited to 'parsers')
-rw-r--r--parsers/BackButton.java2
-rw-r--r--parsers/DocumentName.java2
-rw-r--r--parsers/Header.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/parsers/BackButton.java b/parsers/BackButton.java
index 0bba9b8..e504648 100644
--- a/parsers/BackButton.java
+++ b/parsers/BackButton.java
@@ -36,7 +36,7 @@ public class BackButton implements Parser {
if(DirectoryInfo.level!=0) {
fileBuilder.append("\n<div class=\"back\">\n");
fileBuilder.append("<a href=\"");
- if(PresentFile.file.getName().equals("index")) {
+ if(PresentFile.file.getName().equals("index.scruffy")) {
fileBuilder.append("../\"> back ");
}else {
fileBuilder.append("./\"> back ");
diff --git a/parsers/DocumentName.java b/parsers/DocumentName.java
index 09eaf22..032d7c0 100644
--- a/parsers/DocumentName.java
+++ b/parsers/DocumentName.java
@@ -22,7 +22,7 @@
package scruf.parsers;
import java.io.*;
-import scruf.io.*;
+import scruf.status.*;
public class DocumentName implements Parser {
public String parse(String fileContent) {
diff --git a/parsers/Header.java b/parsers/Header.java
index 902d0c6..50575c1 100644
--- a/parsers/Header.java
+++ b/parsers/Header.java
@@ -21,7 +21,7 @@
package scruf.parsers;
-import scruf.io.*;
+import scruf.status.*;
public class Header implements Parser {