aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-23 16:29:53 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-23 16:29:53 +0800
commit001a8e564d07088e7a8f0c32db1b33170e0a2e0c (patch)
treea627cd592e2af5a6e3b15a067c5e2c19fb3b7344
parentNote the JS solver is extra slow (diff)
downloadpowxy-001a8e564d07088e7a8f0c32db1b33170e0a2e0c.tar.gz
powxy-001a8e564d07088e7a8f0c32db1b33170e0a2e0c.tar.zst
powxy-001a8e564d07088e7a8f0c32db1b33170e0a2e0c.zip
Remove extra newlines from tmpl and csolver
-rw-r--r--csolver.go6
-rw-r--r--tmpl.go6
2 files changed, 4 insertions, 8 deletions
diff --git a/csolver.go b/csolver.go
index 3766ca4..c3beb6d 100644
--- a/csolver.go
+++ b/csolver.go
@@ -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;
-}
-`
+}`
diff --git a/tmpl.go b/tmpl.go
index fb63907..64cceea 100644
--- a/tmpl.go
+++ b/tmpl.go
@@ -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)
}