export view=2 fix: white-space:pre чтобы пробелы не схлопывались

This commit is contained in:
2026-06-22 20:46:33 +04:00
parent 1b255362ce
commit ac7009f1e0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ipwhitelist",
"version": "0.1.1",
"version": "0.1.2",
"description": "IP WhiteList microservice for cloud provider",
"main": "server.js",
"scripts": {
+1 -1
View File
@@ -73,7 +73,7 @@ function renderTable(cidrs) {
+ 'h2{font-size:1rem;color:#666;margin-bottom:.5rem}'
+ 'table{border-collapse:collapse}'
+ 'td{padding:.15rem 1rem .15rem 0}'
+ 'code{font-size:.9rem}'
+ 'code{font-size:.9rem;white-space:pre}'
+ '</style></head><body>'
+ '<h2>WhiteList — ' + cidrs.length + ' записей</h2>'
+ '<table>' + rows + '</table>'