diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-23 16:29:53 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-23 16:29:53 +0800 |
commit | 001a8e564d07088e7a8f0c32db1b33170e0a2e0c (patch) | |
tree | a627cd592e2af5a6e3b15a067c5e2c19fb3b7344 | |
parent | Note the JS solver is extra slow (diff) | |
download | powxy-001a8e564d07088e7a8f0c32db1b33170e0a2e0c.tar.gz powxy-001a8e564d07088e7a8f0c32db1b33170e0a2e0c.tar.zst powxy-001a8e564d07088e7a8f0c32db1b33170e0a2e0c.zip |
Remove extra newlines from tmpl and csolver
-rw-r--r-- | csolver.go | 6 | ||||
-rw-r--r-- | tmpl.go | 6 |
2 files changed, 4 insertions, 8 deletions
@@ -3,8 +3,7 @@ package main -const solverProgram = ` -#include <openssl/evp.h> +const solverProgram = `#include <openssl/evp.h> #include <openssl/bio.h> #include <openssl/buffer.h> #include <stdbool.h> @@ -179,5 +178,4 @@ int main(int argc, char **argv) BIO_free_all(b64_out); return 0; -} -` +}` @@ -13,8 +13,7 @@ var tmpl *template.Template func init() { var err error - tmpl, err = template.New("powxy").Parse(` -<!DOCTYPE html> + tmpl, err = template.New("powxy").Parse(`<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> @@ -291,8 +290,7 @@ for the JavaScript code in this page. }); </script> </body> -</html> -`) +</html>`) if err != nil { log.Fatal(err) } |