MegaMek / megameklab

MegaMekLab is a BattleTech unit modification program. It allows creating and modifying all unit types available in MegaMek from Support Vehicles up to WarShips. It also allows printing record sheets for single or multiple units.
http://www.megamek.org
85 stars 129 forks source link

Support Vehicle Export to Clipboard Includes HTML #1479

Closed JohnLangford closed 3 months ago

JohnLangford commented 4 months ago

Environment

0.49.18 from HQ's Meklab on Linux (Ubuntu). openjdk version "11.0.22" 2024-01-16

Description

When building a support vehicle -> VTOL -> Small, clicking on "Export ... to Clipboard" and then pasting reveals http elements in the upper portions of the pasted material.

Files

An example is: Hoverbike (Laser)

Mass: 0.5 tons
Movement Type: VTOL
Power Plant: Fusion
Cruising Speed: 129.6 kph
Maximum Speed: 194.4 kph
Armor: BAR 2
Armament:
     6 Machine Gun (Portable)
Communication System: Unknown
Targeting & Tracking System: Unknown
Introduction Year: 3030
Tech Rating/Availability: D/X-E-D-D
Cost: 9,526 C-bills

Type: Hoverbike Chassis Type: VTOL (Small) Technology Base: Inner Sphere (Standard) Mass: 500 kg Battle Value: 42

Equipment Mass (kg) Chassis/Controls 75.00000000000001 Engine/Trans. 250.0 Cruise MP:12 Flank MP:18 Heat Sinks 0 0.0 Fuel 0.0 Armor Factor (BAR 2) 0 13.0

                      Internal   Armor   
                      Structure  Value   
 Front                   1         0     
 R/L Side               1/1       0/0    
 Rear                    1         0     
 Rotor                   1         0     

Weapons and Ammo Location Tonnage
None

Cargo None

Notes: Features Ultra-Light Chassis and Controls Modification

pavelbraginskiy commented 3 months ago

Can't reproduce in 49.20 Snapshot, only getting plaintext.

Can you check again in a newer version?

JohnLangford commented 3 months ago

I'm not sure how to try in 49.20, but the bug still exists in 49.19.1.

It looks like github is suppressing the markup in it's printout. The markup starts just after the title and ends just after cost.

pavelbraginskiy commented 3 months ago

Got it, didn't realize at first you were talking about the TRO export.