[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #8520] Overhaul private functions in gener
From: |
Julien Bect |
Subject: |
[Octave-patch-tracker] [patch #8520] Overhaul private functions in generate_html package |
Date: |
Wed, 20 Aug 2014 18:10:53 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0 |
URL:
<http://savannah.gnu.org/patch/?8520>
Summary: Overhaul private functions in generate_html package
Project: GNU Octave
Submitted by: jbect
Submitted on: mer. 20 août 2014 18:10:52 GMT
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
The attached patch is for the generate_html package. It contains a significant
overhaul of the private functions related to headers, footers, etc.
Essentially, it reduces code replication by merging three functions into one
(get_header_title_and_footer, get_index_header_title_and_footer and
get_overview_header_title_and_footer).
-----
* inst/private/get_header_title_and_footer.m: Make it a "generic"
function that can handle all page types (index, overview,
functions).
* inst/private/get_index_header_title_and_footer.m: Not needed
anymore, use get_header_title_and_footer instead.
* inst/private/get_overview_header_title_and_footer.m: Not needed
anymore, use get_header_title_and_footer instead.
* inst/generate_alphabet.m: Use get_header_title_and_footer.
* inst/generate_operators.m: Use get_header_title_and_footer.
* inst/generate_package_html.m: Use get_header_title_and_footer.
Rename pack_body_cmd to overview_body_command.
* inst/get_html_options.m: Rename pack_body_cmd to
overview_body_command.
* inst/html_help_text.m: Adapt to the new syntax for
get_header_title_and_footer.m (additional input argument).
* inst/texi2html.m: Adapt to the new syntax for
get_header_title_and_footer.m (additional input argument).
* inst/private/get_default_body_command.m: New function that
provides a default "body_command" value.
* inst/private/get_default_footer.m: New function that
provides a default "footer" value.
* inst/private/get_default_header.m: New function that
provides a default "header" value.
* inst/private/get_default_title.m: New function that
provides a default "title" value.
* inst/private/get_feature.m: New function that returns the value
of a given feature (header, footer, etc.) for a given page_type.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: mer. 20 août 2014 18:10:52 GMT Name: overhaul_private.patch Size: 21
ko By: jbect
<http://savannah.gnu.org/patch/download.php?file_id=31926>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8520>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/
- [Octave-patch-tracker] [patch #8520] Overhaul private functions in generate_html package,
Julien Bect <=