manual: fixed itemize in script script

This commit is contained in:
Milanka Ringwald 2015-04-27 00:17:32 +02:00
parent c26aef2c20
commit 60783ab85e
2 changed files with 12 additions and 12 deletions

View File

@ -8,17 +8,17 @@ list_of_groups = ["Hello World", "GAP", "SDP Queries", "SPP Server", "BNEP/PAN",
# Defines which examples belong to a group. Example is defined as [example file, example title].
list_of_examples = {
# "Hello World" : [["led_counter"]],
# "GAP" : [["gap_inquiry"]],
"SDP Queries" :[#["sdp_general_query"],
"Hello World" : [["led_counter"]],
"GAP" : [["gap_inquiry"]],
"SDP Queries" :[["sdp_general_query"],
["sdp_bnep_query"]
],
# "SPP Server" : [["spp_counter"],
# ["spp_flowcontrol"]],
# "BNEP/PAN" : [["panu_demo"]],
# "Low Energy" : [["gatt_browser"],
# ["le_counter"]],
# "Dual Mode" : [["spp_and_le_counter"]],
"SPP Server" : [["spp_counter"],
["spp_flowcontrol"]],
"BNEP/PAN" : [["panu_demo"]],
"Low Energy" : [["gatt_browser"],
["le_counter"]],
"Dual Mode" : [["spp_and_le_counter"]],
}
lst_header = """
@ -220,7 +220,7 @@ def writeListings(aout, infile_name, ref_prefix):
skip_code = 1
# finish text, start itemize
writeTextBlock(aout, lstStarted)
itemize_block = "\n \\begin{itemize}"
itemize_block = "\n \\begin{itemize}" + processTextLine(line, ref_prefix)
continue
if itemize_block:
skip_code = 1
@ -311,7 +311,7 @@ def processExamples(examples_folder, standalone, examples_ofile):
aout.write(" \item " + group_title + "\n");
aout.write(" \\begin{itemize}\n");
for example in examples:
ref_prefix = example[0]
ref_prefix = example[0].replace("_", "-")
title = latexText(example[0], ref_prefix)
desc = latexText(example[1], ref_prefix)
aout.write(example_item.replace("EXAMPLE_TITLE", title).replace("EXAMPLE_DESC", desc).replace("EXAMPLE_LABLE", ref_prefix))

View File

@ -222,7 +222,7 @@ static void handle_sdp_client_query_result(sdp_query_event_t * event){
/* LISTING_RESUME */
/* @text The Protocol Descriptor List is DES
* which contains one DES for each protocol. For PAN serivces, it contains
* a DES with the L2CAP Protocol UUID and a PSM, Listing A_B_C, Section D_E_F
* a DES with the L2CAP Protocol UUID and a PSM,
* and another DES with the BNEP UUID and the the BNEP version.
*/
case SDP_ProtocolDescriptorList:{