Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter ElevenSGML Functions (continued)

HTMLStyleNormalize Function

Overview

The HTMLStyleNormalize function scans the current buffer and removes non-style properties from the attributes, such as, ‘none’ or ‘normal’.

Syntax/Parameters

Syntax

int = HTMLStyleNormalize ( handle hStyle );

Parameters

hStyle

A handle to an HTML Style Object.

Return Value

An int as ERROR_NONE or a formatted error code on error. Use the GetLastError function to retrieve a formatted error code.

Remarks

This function is useful if a segment of styled data contains a number of items that are not required is normal circumstances. For example, having a property “font-style: normal” is only useful if the parent block has the font-style set to italic. In addition, some applications will add “auto” or “inherit” to the coding stream which are not normally required.

The following properties are adjusted:

font-style

font-variant

font-weight

text-decoration-line

text-transform 

 

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic