Skip to content

Commit

Permalink
Fix for Issue #10
Browse files Browse the repository at this point in the history
  • Loading branch information
SerpentBytes committed Sep 17, 2022
1 parent 151d45a commit 7c756d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
3 changes: 1 addition & 2 deletions src/htmlGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ const { success, err } = require('./cliDisplay')

const addPTag = (content) => {
let returnStr = ""
returnStr += content.replace(/[\n]{2,}/g, "</p>\n\n<p>")
//console.log(returnStr.toString())
returnStr += content.replace(/[\r\n]{2,}/g, "</p>\n\n<p>")
return returnStr

}
Expand Down
7 changes: 0 additions & 7 deletions src/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ const { generateHTML } = require("./htmlGenerator");

const handleImproperUsage = (flag) => {
switch (flag) {
// case "-v":
// console.log(`Invalid option\nusage: siteit --version\nusage: siteit -v`)
// break
// case "-h":
// console.log(`Invalid option\nusage: siteit --help\nusage: siteit -h`)
// break
case "-i":
console.log(
`-- Invalid flag --\n${cmd()} -i myfile.txt\nusage: ${cmd()} --input myfile.txt`
Expand Down Expand Up @@ -119,7 +113,6 @@ const processInput = (args) => {
if (fs.statSync(src[i]).isFile()) {
processFile(src[i]);
} else if (fs.statSync(src[i]).isDirectory()) {
// processDir(src)
}
} catch (e) {
console.error(
Expand Down

0 comments on commit 7c756d8

Please sign in to comment.