qgreenland/util/qgis.py
def build_layer_abstract(layer_cfg):
    """Return a properly escaped layer abstract text."""
    # Include the layer description first.
    abstract = _build_layer_description(layer_cfg)

    # If the layer has a description, separate it from the abstract of the
    # original data source.
    if abstract:
        abstract += '\n\n=== Original Data Source ===\n'

    abstract += _build_dataset_description(layer_cfg)

    if abstract:
        abstract += '\n\n'

    # Add the dataset's citation
    abstract += _build_dataset_citation(layer_cfg)

    return escape(abstract)
Return a properly escaped layer abstract text.
Return a properly escaped layer abstract text.
Return a properly escaped layer abstract text .
def build_layer_abstract(layer_cfg):
    abstract = _build_layer_description(layer_cfg)
    if abstract:
        abstract += '\n\n=== Original Data Source ===\n'
    abstract += _build_dataset_description(layer_cfg)
    if abstract:
        abstract += '\n\n'
    abstract += _build_dataset_citation(layer_cfg)
    return escape(abstract)
def build_layer_abstract ( layer_cfg ) : abstract = _build_layer_description ( layer_cfg ) if abstract : abstract += '\n\n=== Original Data Source ===\n' abstract += _build_dataset_description ( layer_cfg ) if abstract : abstract += '\n\n' abstract += _build_dataset_citation ( layer_cfg ) return escape ( abstract )
Return a properly escaped layer abstract text.
Return a properly escaped layer abstract text .
"""Return a properly escaped layer abstract text.""" # Include the layer description first. # If the layer has a description, separate it from the abstract of the # original data source. # Add the dataset's citation
layer_cfg