diff options
author | rsiddharth <rsiddharth@ninthfloor.org> | 2012-06-24 21:44:10 +0530 |
---|---|---|
committer | rsiddharth <rsiddharth@ninthfloor.org> | 2012-06-24 21:44:10 +0530 |
commit | 1a886ec82f13a01253e5611aeb18e3c845e2668d (patch) | |
tree | 32567177f7b4b91b14947c903b330bad7673e726 /parsers/Header.java | |
parent | 250cf4befea71a2ec6d917d104d20c702e7d4551 (diff) |
conversion/ConvertDirectory.java: only a small addition -- to print out the file that is under "conversion"
conversion/FileSieve.java: update the regex to ignore hidden files, ".ttf" files.
parsers/Header.java:
* Now the blog post goes bettween the <article> & </article> tag, Header class was modified to reflect this
change.
* "Powered by scruf" line must go at the bottom of every html page that is generated by this program, Header
class was modified to reflect this.
parsers/Images.java: I have modified the "regex" and relevant code to make the "image description" optional.
Diffstat (limited to 'parsers/Header.java')
-rw-r--r-- | parsers/Header.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/parsers/Header.java b/parsers/Header.java index 99114ae..96ffa05 100644 --- a/parsers/Header.java +++ b/parsers/Header.java @@ -20,15 +20,23 @@ public class Header implements Parser { sbuilder.append("</title>"); sbuilder.append("</head> \n"); sbuilder.append("<body> \n"); + // File Content goes inside <article> tag + sbuilder.append("<article>\n"); // insert File Content. sbuilder.append(fileContent); // insert back button. sbuilder.append(PresentFile.backButton); - // Close body - sbuilder.append("\n</body>\n"); + // add footer if footer is available. if(PresentFile.footer!=null) { sbuilder.append(PresentFile.footer); } + sbuilder.append("</article>\n"); + // add "powered by scruf" at bottom of page. + sbuilder.append("<div class=\"scruf\">\n"); + sbuilder.append("powered by scruf"); + sbuilder.append("</div>"); + // Close body tag + sbuilder.append("\n</body>\n"); sbuilder.append("</html>\n"); return sbuilder.toString(); |