Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hmmm, the html files seem like the output of some form of generation, or perhaps a crappy web editor?

eg:

* https://github.com/thstsa/spacetourism/blob/main/technologie...

* https://github.com/thstsa/spacetourism/blob/main/index.html

* https://github.com/thstsa/spacetourism/blob/main/pricing.htm...

Those multi-line blank gaps all over the place are not something that generally occur in hand crafted or "from scratch" html.

That being said, the teacher sounds out of their depth and should either gain a clue or refrain from being involved in judging next year.

**

Optimal practical solution would probably be to try and get the rules fixed, so future participants don't get erroneously disqualified.



Just my 2c, but those gaps look too uneven to be produced by a framework. They remind me of my own html from scratch when I didn’t use a formatter or linter haha


Yeah, to me they look like the output that I get when I'm writing with Go templates (non-minified afterwards).

eg:

    <html>
      {{ if eq .FOO "bar" }}
        <some tags here>
      {{ end }}

      <other stuff>

      {{ if eq .BAZ "bim" }}
        <some tags here>
      {{ end }}
    </html>
That ends up generating blank lines all over the place, very much like the output they have. ;)


The revision history doesn't seem to support that. They seem to just mash enter a lot.

Especially it looks like they have lots of edits where they add blank lines and then another tag, and then remove the new tag but not the blank line. E.g. https://github.com/thstsa/spacetourism/commit/6411ce05009cc6...

Or sometimes just replacing things they intend to outright remove with blank lines.

With multiple committers, it seems unlikely they're all templating and then checking in the output of the template engine.


Oh, that's a good point. Yeah, I think you're probably right. :)


Fwiw you can strip the space with:

    {{- [...] -}}
(Or just one side) and put back the right amount with:

    {{ [...] | [n]indent X }}
(Where X is the number of spaces to indent)


Thanks heaps, learn something every day. :)


> Those multi-line blank gaps all over the place are not something that generally occur in hand crafted or "from scratch" html.

Idk, that looks fairly standard to me. A lot of people like to space out their HTML so it's easier to read, myself included.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: