Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files other than '.txt' should not be used as input #2

Closed
menghif opened this issue Sep 16, 2021 · 1 comment
Closed

Files other than '.txt' should not be used as input #2

menghif opened this issue Sep 16, 2021 · 1 comment

Comments

@menghif
Copy link

menghif commented Sep 16, 2021

Currently the program allows input files that are not .txt.

This problem also occurs when a directory is used as input: all the files inside the directory are used instead of only using the .txt files.

Example:

~/repos/OSD600-SSG (main) % cat file.md 
hello

world
~/repos/OSD600-SSG (main) % osdssg -i file.md 
New file has been created!!
~/repos/OSD600-SSG (main) % cat dist/index.html 
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>hello</title>
</head>
<body>
    
<h1>hello</h1>
<p></p>
<p>world</p></body>
</html>%    
@nguyenhung15913
Copy link
Owner

Thanks @menghif, for the first time I thought the tool will accept all raw data input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants