Removed excessive blank lines being generated

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2, Sig, Sigo 2 years ago
parent b21637d5ce
commit 35a8dfffcc
  1. 16
      out/DIRECTORY_LISTING
  2. 14
      out/articles/DIRECTORY_LISTING
  3. 2
      out/articles/curabitur vel tempus ex.article
  4. 2
      out/articles/curabitur vel tempus ex.article.html
  5. 463
      out/articles/sigplace1.article
  6. 463
      out/articles/sigplace1.article.html
  7. 12
      out/articles/test articles/DIRECTORY_LISTING
  8. 2
      out/otherpage.html
  9. 1
      out/reset.css
  10. 45
      out/sig.css
  11. 2
      out/testfile.html
  12. 2
      out/uploadform.html
  13. 6
      sigPlace.java

@ -17,14 +17,14 @@
</head>
<body>
<div class="contentBody">
<h2>Directory Listing for /</h2><div class="folderlisting"><a href="/.." class="icon">&#x1F4C1;</a><a href="/..">.. </a><a href="/.." class="nounderline">(Previous Directory)</a></div><div class="folderlisting"><a href="/articles" class="icon">&#x1F4C1;</a><a href="/articles">articles</a> 2022-07-26T17:51:08.773562Z gitpod 4096</div>
<div class="filelisting"><a href="/codeBackground" class="icon">&#x1F5CE;</a><a href="/codeBackground">codeBackground</a> 2022-07-26T17:51:08.693562Z gitpod 2635</div>
<div class="filelisting"><a href="/otherpage.html" class="icon">&#x1F5CE;</a><a href="/otherpage.html">otherpage.html</a> 2022-07-26T17:51:08.697562Z gitpod 941</div>
<div class="filelisting"><a href="/reset.css" class="icon">&#x1F5CE;</a><a href="/reset.css">reset.css</a> 2022-07-26T17:51:08.697562Z gitpod 1093</div>
<div class="filelisting"><a href="/uploadform.html" class="icon">&#x1F5CE;</a><a href="/uploadform.html">uploadform.html</a> 2022-07-26T17:51:08.721562Z gitpod 884</div>
<div class="folderlisting"><a href="/images" class="icon">&#x1F4C1;</a><a href="/images">images</a> 2022-07-26T17:51:08.765562Z gitpod 58</div>
<div class="filelisting"><a href="/sig.css" class="icon">&#x1F5CE;</a><a href="/sig.css">sig.css</a> 2022-07-26T17:51:08.705562Z gitpod 6966</div>
<div class="filelisting"><a href="/testfile.html" class="icon">&#x1F5CE;</a><a href="/testfile.html">testfile.html</a> 2022-07-26T17:51:08.721562Z gitpod 804</div>
<h2>Directory Listing for /</h2><div class="folderlisting"><a href="/.." class="icon">&#x1F4C1;</a><a href="/..">.. </a><a href="/.." class="nounderline">(Previous Directory)</a></div><div class="folderlisting"><a href="/articles" class="icon">&#x1F4C1;</a><a href="/articles">articles</a> 2022-07-26T18:09:20.593509Z gitpod 4096</div>
<div class="filelisting"><a href="/codeBackground" class="icon">&#x1F5CE;</a><a href="/codeBackground">codeBackground</a> 2022-07-26T18:09:20.537509Z gitpod 2635</div>
<div class="filelisting"><a href="/otherpage.html" class="icon">&#x1F5CE;</a><a href="/otherpage.html">otherpage.html</a> 2022-07-26T18:09:20.541509Z gitpod 939</div>
<div class="filelisting"><a href="/reset.css" class="icon">&#x1F5CE;</a><a href="/reset.css">reset.css</a> 2022-07-26T18:09:20.541509Z gitpod 1092</div>
<div class="filelisting"><a href="/uploadform.html" class="icon">&#x1F5CE;</a><a href="/uploadform.html">uploadform.html</a> 2022-07-26T18:09:20.561509Z gitpod 882</div>
<div class="folderlisting"><a href="/images" class="icon">&#x1F4C1;</a><a href="/images">images</a> 2022-07-26T18:09:20.589509Z gitpod 58</div>
<div class="filelisting"><a href="/sig.css" class="icon">&#x1F5CE;</a><a href="/sig.css">sig.css</a> 2022-07-26T18:09:20.549509Z gitpod 6903</div>
<div class="filelisting"><a href="/testfile.html" class="icon">&#x1F5CE;</a><a href="/testfile.html">testfile.html</a> 2022-07-26T18:09:20.561509Z gitpod 802</div>
</div> <!--End Content Body-->
<div class="codeForeground" id="codeForeground"></div>

@ -17,13 +17,13 @@
</head>
<body>
<div class="contentBody">
<h2>Directory Listing for /articles/</h2><div class="folderlisting"><a href="/articles/.." class="icon">&#x1F4C1;</a><a href="/articles/..">.. </a><a href="/articles/.." class="nounderline">(Previous Directory)</a></div><div class="filelisting"><a href="/articles/Love Live! Custom Arcade Controller.article" class="icon">&#x1F5CE;</a><a href="/articles/Love Live! Custom Arcade Controller.article">Love Live! Custom Arcade Controller.article</a> 2022-07-26T17:51:08.161562Z gitpod 497</div>
<div class="folderlisting"><a href="/articles/test articles" class="icon">&#x1F4C1;</a><a href="/articles/test articles">test articles</a> 2022-07-26T17:51:08.725562Z gitpod 147</div>
<div class="filelisting"><a href="/articles/curabitur vel tempus ex.article" class="icon">&#x1F5CE;</a><a href="/articles/curabitur vel tempus ex.article">curabitur vel tempus ex.article</a> 2022-07-26T17:51:08.201562Z gitpod 734</div>
<div class="filelisting"><a href="/articles/sigplace1.article" class="icon">&#x1F5CE;</a><a href="/articles/sigplace1.article">sigplace1.article</a> 2022-07-26T17:51:08.689562Z gitpod 81768</div>
<div class="filelisting"><a href="/articles/Love Live! Custom Arcade Controller.article.html" class="icon">&#x1F5CE;</a><a href="/articles/Love Live! Custom Arcade Controller.article.html">Love Live! Custom Arcade Controller.article.html</a> 2022-07-26T17:51:08.721562Z gitpod 1214</div>
<div class="filelisting"><a href="/articles/curabitur vel tempus ex.article.html" class="icon">&#x1F5CE;</a><a href="/articles/curabitur vel tempus ex.article.html">curabitur vel tempus ex.article.html</a> 2022-07-26T17:51:08.737562Z gitpod 1451</div>
<div class="filelisting"><a href="/articles/sigplace1.article.html" class="icon">&#x1F5CE;</a><a href="/articles/sigplace1.article.html">sigplace1.article.html</a> 2022-07-26T17:51:08.753562Z gitpod 82485</div>
<h2>Directory Listing for /articles/</h2><div class="folderlisting"><a href="/articles/.." class="icon">&#x1F4C1;</a><a href="/articles/..">.. </a><a href="/articles/.." class="nounderline">(Previous Directory)</a></div><div class="filelisting"><a href="/articles/Love Live! Custom Arcade Controller.article" class="icon">&#x1F5CE;</a><a href="/articles/Love Live! Custom Arcade Controller.article">Love Live! Custom Arcade Controller.article</a> 2022-07-26T18:09:20.093509Z gitpod 497</div>
<div class="folderlisting"><a href="/articles/test articles" class="icon">&#x1F4C1;</a><a href="/articles/test articles">test articles</a> 2022-07-26T18:09:20.565509Z gitpod 147</div>
<div class="filelisting"><a href="/articles/curabitur vel tempus ex.article" class="icon">&#x1F5CE;</a><a href="/articles/curabitur vel tempus ex.article">curabitur vel tempus ex.article</a> 2022-07-26T18:09:20.121509Z gitpod 730</div>
<div class="filelisting"><a href="/articles/sigplace1.article" class="icon">&#x1F5CE;</a><a href="/articles/sigplace1.article">sigplace1.article</a> 2022-07-26T18:09:20.533509Z gitpod 80858</div>
<div class="filelisting"><a href="/articles/Love Live! Custom Arcade Controller.article.html" class="icon">&#x1F5CE;</a><a href="/articles/Love Live! Custom Arcade Controller.article.html">Love Live! Custom Arcade Controller.article.html</a> 2022-07-26T18:09:20.561509Z gitpod 1214</div>
<div class="filelisting"><a href="/articles/curabitur vel tempus ex.article.html" class="icon">&#x1F5CE;</a><a href="/articles/curabitur vel tempus ex.article.html">curabitur vel tempus ex.article.html</a> 2022-07-26T18:09:20.573509Z gitpod 1447</div>
<div class="filelisting"><a href="/articles/sigplace1.article.html" class="icon">&#x1F5CE;</a><a href="/articles/sigplace1.article.html">sigplace1.article.html</a> 2022-07-26T18:09:20.581509Z gitpod 81575</div>
</div> <!--End Content Body-->
<div class="codeForeground" id="codeForeground"></div>

@ -3,8 +3,6 @@
Curabitur vel tempus ex. Duis cursus sapien nisl, ut pulvinar dui porttitor ut. Nullam odio purus, tristique non turpis sit amet, malesuada ultricies purus. Mauris ut nulla nisl. Aenean sit amet est egestas justo volutpat consequat. Suspendisse in sagittis augue, et mattis tortor. Nullam viverra metus et nibh fringilla iaculis.
</p>
<br/>
<p class="color3">
<pre>
&lt;>&lt;Test><span class="string">"&lt;/test>&lt;/test2>&lt;test3>"</span>

@ -22,8 +22,6 @@
Curabitur vel tempus ex. Duis cursus sapien nisl, ut pulvinar dui porttitor ut. Nullam odio purus, tristique non turpis sit amet, malesuada ultricies purus. Mauris ut nulla nisl. Aenean sit amet est egestas justo volutpat consequat. Suspendisse in sagittis augue, et mattis tortor. Nullam viverra metus et nibh fringilla iaculis.
</p>
<br/>
<p class="color3">
<pre>
&lt;>&lt;Test><span class="string">"&lt;/test>&lt;/test2>&lt;test3>"</span>

@ -33,469 +33,6 @@ Vestibulum laoreet lorem consequat, mollis augue finibus, luctus libero. Praesen
Here we demonstrate the love live logo. But wait, it's literally like in the middle wtf is going on.Here we demonstrate the love live logo. But wait, it's literally like in the middle wtf is going on.Here we demonstrate the love live logo. But wait, it's literally like in the middle wtf is going on.
</p>
<br/>
<p class="color1">
<pre>
<span class="keyword">import</span> <span class="class">java</span>.<span class="class">io</span>.<span class="keyword">IOException</span>;<span class="variable"></span>

@ -52,469 +52,6 @@ Vestibulum laoreet lorem consequat, mollis augue finibus, luctus libero. Praesen
Here we demonstrate the love live logo. But wait, it's literally like in the middle wtf is going on.Here we demonstrate the love live logo. But wait, it's literally like in the middle wtf is going on.Here we demonstrate the love live logo. But wait, it's literally like in the middle wtf is going on.
</p>
<br/>
<p class="color1">
<pre>
<span class="keyword">import</span> <span class="class">java</span>.<span class="class">io</span>.<span class="keyword">IOException</span>;<span class="variable"></span>

@ -17,12 +17,12 @@
</head>
<body>
<div class="contentBody">
<h2>Directory Listing for /articles/test articles/</h2><div class="folderlisting"><a href="/articles/test articles/.." class="icon">&#x1F4C1;</a><a href="/articles/test articles/..">.. </a><a href="/articles/test articles/.." class="nounderline">(Previous Directory)</a></div><div class="filelisting"><a href="/articles/test articles/test1.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test1.article">test1.article</a> 2022-07-26T17:51:08.161562Z gitpod 1085</div>
<div class="filelisting"><a href="/articles/test articles/test2.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test2.article">test2.article</a> 2022-07-26T17:51:08.165562Z gitpod 781</div>
<div class="filelisting"><a href="/articles/test articles/test3.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test3.article">test3.article</a> 2022-07-26T17:51:08.169562Z gitpod 994</div>
<div class="filelisting"><a href="/articles/test articles/test1.article.html" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test1.article.html">test1.article.html</a> 2022-07-26T17:51:08.725562Z gitpod 1802</div>
<div class="filelisting"><a href="/articles/test articles/test2.article.html" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test2.article.html">test2.article.html</a> 2022-07-26T17:51:08.725562Z gitpod 1498</div>
<div class="filelisting"><a href="/articles/test articles/test3.article.html" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test3.article.html">test3.article.html</a> 2022-07-26T17:51:08.725562Z gitpod 1711</div>
<h2>Directory Listing for /articles/test articles/</h2><div class="folderlisting"><a href="/articles/test articles/.." class="icon">&#x1F4C1;</a><a href="/articles/test articles/..">.. </a><a href="/articles/test articles/.." class="nounderline">(Previous Directory)</a></div><div class="filelisting"><a href="/articles/test articles/test1.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test1.article">test1.article</a> 2022-07-26T18:09:20.097509Z gitpod 1085</div>
<div class="filelisting"><a href="/articles/test articles/test2.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test2.article">test2.article</a> 2022-07-26T18:09:20.097509Z gitpod 781</div>
<div class="filelisting"><a href="/articles/test articles/test3.article" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test3.article">test3.article</a> 2022-07-26T18:09:20.101509Z gitpod 994</div>
<div class="filelisting"><a href="/articles/test articles/test1.article.html" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test1.article.html">test1.article.html</a> 2022-07-26T18:09:20.565509Z gitpod 1802</div>
<div class="filelisting"><a href="/articles/test articles/test2.article.html" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test2.article.html">test2.article.html</a> 2022-07-26T18:09:20.565509Z gitpod 1498</div>
<div class="filelisting"><a href="/articles/test articles/test3.article.html" class="icon">&#x1F5CE;</a><a href="/articles/test articles/test3.article.html">test3.article.html</a> 2022-07-26T18:09:20.565509Z gitpod 1711</div>
</div> <!--End Content Body-->
<div class="codeForeground" id="codeForeground"></div>

@ -23,12 +23,10 @@ $ARTICLE_PREVIEW test articles/test1
$ARTICLE_PREVIEW test articles/test2
$ARTICLE_PREVIEW test articles/test3
$ARTICLE_PREVIEW curabitur vel tempus ex
</div> <!--End Content Body-->
<div class="codeForeground" id="codeForeground"></div>
<div class="codeBackground" id="codeBackground"></div>
</body>
<footer>
</footer>
</html>

@ -2,7 +2,6 @@
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,

@ -1,5 +1,3 @@
a:link{
color:#D7F;
font-size:0.8em;
@ -12,27 +10,22 @@ a:hover{
color:white;
font-size:0.8em;
}
a.nounderline:link{
text-decoration:none;
}
a.nounderline:visited{
text-decoration:none;
}
a.nounderline:hover{
text-decoration:none;
}
h2{
font-size:3em;
}
.generateTime{
font-size:10px;
color:blue;
}
.codeForeground{
font-family:'Courier New', Courier, monospace;
position:fixed;
@ -51,7 +44,6 @@ h2{
max-width:98vw;
max-height:90vh;
}
.codeBackground{
font-family:'Courier New', Courier, monospace;
position:fixed;
@ -65,7 +57,6 @@ h2{
max-width:98vw;
max-height:90vh;
}
@keyframes backgroundMove{
0%{
background-position: 0% 50%;
@ -74,24 +65,20 @@ h2{
background-position: 100% 50%;
}
}
body{
font-family: 'Trebuchet MS', Garamond, serif, 'Tahoma', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background-color:#111;
}
sub{
font-size:0.65em;
position:relative;
bottom:-4px;
}
sup{
font-size:0.65em;
position:relative;
top:-8px;
}
.contentBody{
backdrop-filter: blur(4px);
color: #a985e4;
@ -99,31 +86,24 @@ sup{
text-shadow: 0.3px 0.3px 3px #666666;
z-index:-1;
}
.contentBody .color1{
color: #a985e4;
}
.contentBody .color2{
color: #85abe4;
}
.contentBody .color3{
color: #85e4ad;
}
.contentBody .color4{
color: #d3e485;
}
.contentBody .color5{
color: #e4a385;
}
.contentBody .color6{
color: #e485b1;
}
.contentBody .contentWrapper{
position:relative;
border-style: none none outset none;
@ -134,11 +114,9 @@ sup{
min-width:98vw;
z-index:0;
}
.contentBody .contentWrapper:hover{
border-color: rgb(17, 153, 17, .8);
}
.contentBody .contentWrapper h1{
display: inline-block;
font-size:3.25em;
@ -150,7 +128,6 @@ sup{
background-color:rgba(255, 255, 255, .06);
z-index:0;
}
.contentBody .contentWrapper .content{
display: inline-block;
min-width:97vw;
@ -163,7 +140,6 @@ sup{
max-height:120px;
overflow:hidden;
}
.contentBody .contentWrapper .expandedContent{
display: inline-block;
min-width:97vw;
@ -174,19 +150,16 @@ sup{
background-color: rgba(255, 255, 255, .06);
z-index:0;
}
.contentBody .contentWrapper figure{
border: 2px ridge rgb(88, 35, 86);
border-radius:4px;
margin:12px 20px 12px 20px;
}
.contentBody .contentWrapper figcaption{
font-size: 0.85em;
font-style: italic;
color:rgb(221, 105, 217);
}
.contentBody .contentWrapper .datebar{
font-size:0.75em;
margin: 0px 4px 0px 4px;
@ -195,7 +168,6 @@ sup{
z-index:0;
background: linear-gradient(90deg,rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, .3) 20%,rgba(255, 255, 255, .06) 45%,rgba(255, 255, 255, .06) 0%);
}
.contentBody .contentWrapper .date{
font-size:0.75em;
margin: 0px 4px 0px 4px;
@ -204,7 +176,6 @@ sup{
z-index:0;
background-color: rgba(255, 255, 255, .06);
}
.contentBody .contentWrapper .unexpanded{
position:absolute;
bottom:0px;
@ -214,34 +185,28 @@ sup{
background: linear-gradient(180deg,rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 5%, rgba(32,32,32,1.0) 100%);
user-select:none;
}
.contentBody .contentWrapper .unexpanded:hover{
bottom:-8px;
background: linear-gradient(180deg,rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 5%, rgba(64,64,64,1.0) 100%);
cursor:pointer;
}
.contentBody .filelisting{
padding:12px 4px 2px 4px;
font-size:1.75em;
}
.contentBody .folderlisting{
padding:12px 4px 2px 4px;
font-size:1.75em;
}
.contentBody .icon:link{
text-decoration:none;
}
.contentBody .icon:visited{
text-decoration:none;
}
.contentBody .icon:hover{
text-decoration:none;
}
pre{
font-family:'Courier New', Courier, monospace;
display:inline-block;
@ -266,17 +231,14 @@ pre{
width: 16px;
height: 16px;
}
/* Track */
::-webkit-scrollbar-track {
background:rgba(0,0,0,0);
}
/* Handle */
::-webkit-scrollbar-thumb {
background: rgb(161, 46, 161);
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: rgb(197, 34, 189);
@ -289,31 +251,24 @@ pre{
width:16px;
height:16px;
}
pre .keyword{
color:cornflowerblue;
}
pre .variable{
color:#AA77FF;
}
pre .class{
color:rgb(216, 107, 74);
}
pre .function{
color:darkgoldenrod;
}
pre .string{
color:forestgreen;
}
pre .number{
color:#d8f070;
}
pre .comment{
color:#6b235e;
}

@ -22,12 +22,10 @@ SigPlace
===
<br/><br/>
<a href="otherpage.html">Other Page!</a>
</div> <!--End Content Body-->
<div class="codeForeground" id="codeForeground"></div>
<div class="codeBackground" id="codeBackground"></div>
</body>
<footer>
</footer>
</html>

@ -22,12 +22,10 @@ SigPlace
<input type="file" name="file1"/>
<input type="submit"/>
</form>
</div> <!--End Content Body-->
<div class="codeForeground" id="codeForeground"></div>
<div class="codeBackground" id="codeBackground"></div>
</body>
<footer>
</footer>
</html>

@ -294,7 +294,11 @@ public class sigPlace {
s=s.replaceAll(Pattern.quote(key),map.get(key));
}
}
content.set(i,s);
if (s.trim().length()==0) {
content.remove(i--);
} else {
content.set(i,s);
}
}
System.out.println(" Writing to "+f.toAbsolutePath());

Loading…
Cancel
Save