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

HTML generation not working? #2

Open
ignition-ctrl opened this issue Nov 3, 2021 · 1 comment
Open

HTML generation not working? #2

ignition-ctrl opened this issue Nov 3, 2021 · 1 comment
Labels
question Further information is requested

Comments

@ignition-ctrl
Copy link

First of all, really nice project, it's very useful to have a TUI for this.
I have an issue with the HTML generation. When I try to generate it with diary -g and password, all I get is the template with Null instead of the entries.

<html>
<meta charset="UTF-8">
    <head><style>
.header {
  padding: 5px;
  border-radius: 20px; 
  text-align: center;
  background: #1abc9c;
  color: #D3FFED;
  font-size: 35px;
  box-shadow: 0px 0px 30px 1px #092E13;
  transition: 0.3s;
}
.header:hover {
  color: white;
  box-shadow: 0px 0px 60px 1px #092E13;
}
.entries {
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  background: #2BA67B;
  color: #D3FFED;
  font-size: 25px;
  box-shadow: 0px 0px 30px 1px #092E13;
  margin: 3%;
  transition: 0.3s;
}
.entries:hover { 
  color: white;
  box-shadow: 0px 0px 60px 1px #092E13;
}
.image {
  display: block;
  border: 5px;
  border-color: #D3FFED;
  border-style: solid;
  border-radius: 20px;
  margin-left: auto;
  margin-right: auto;
  width: 99%;
  box-shadow: 0px 0px 30px 1px #092E13;
  transition: 0.3s;
}
.image:hover {
  border-color: white;
  box-shadow: 0px 0px 60px 1px #092E13;
}
.downloader {
  border: 5px;
  padding: 10px;
  color: #D3FFED;
  border-style: solid;
  border-color: #D3FFED;
  border-radius: 20px;
  margin-right: 200px;
  margin-left: 200px;
  transition: 0.3s;
  box-shadow: 0px 0px 30px 1px #092E13;
}
.downloader:hover {
  color: white;
  border-color: white;
  margin-left: 190px;
  margin-right: 190px;
  box-shadow: 0px 0px 60px 1px #092E13;
}
audio {
  border: 5px;
  background-color: #D3FFED;
  border-style: solid;
  border-radius: 20px;
  border-color: #D3FFED;
  box-shadow: 0px 0px 30px 1px #092E13;
  width: 50%;
  transition: 0.3s;
}
audio:hover{
  border-color: white;
  width: 52%;
  box-shadow: 0px 0px 60px 1px #092E13;
}
body {
  background-color: #175942;
}
</style><body><div class="header">
        <h2>My Diary<h2>
</div> <br><br><div class="entries"><br> <h1><b> Tue, 2nd November, 2021 </b></h1> <br> Null <br><br><br><br></div><br><div class="entries"><br> <h1><b> Tue, 2nd November, 2021 </b></h1> <br> Null <br><br><br><br></div><br></body></html>

I'll try to see if there's an error on my end. Just wanted to let you know.

@actuday6418
Copy link
Owner

Hi, it's great that the project is actually being useful to someone. Satisfying.

This is a bug that is totally out of the blue. Never experienced something like this. Could you share the database.json file if it doesn't contain any confidential info, or another minimal database with which the issue is reproducible?

Was the bug encountered in an edge case? (Did you leave the entry empty or something? For the record, I tested, and I couldn't reproduce it that way)

@actuday6418 actuday6418 added the question Further information is requested label Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants