Skip to content

Variable for STATUS includes spurious HTML #2525

Open
@mikewhippsHarvest

Description

@mikewhippsHarvest

While editing the upsstats-single.html template to produce JSON output I discovered that the @STATUS@ template variable returns a spurious <br> element, as in ONLINE<br>

I haven't tested the output of other values for this variable.

This is running on a Raspberry Pi. Here's the driver info block output from upsc

driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.productid: ffff
driver.parameter.synchronous: auto
driver.parameter.vendorid: 0463
driver.version: 2.8.0
driver.version.data: MGE HID 1.46
driver.version.internal: 0.47
driver.version.usb: libusb-1.0.26 (API: 0x1000109)

Metadata

Metadata

Assignees

No one assigned

    Labels

    CGIbugenhancementimpacts-release-2.8.0Issues reported against NUT release 2.8.0 (maybe vanilla or with minor packaging tweaks)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions