Skip to content

Commit

Permalink
docs: clean up trailing lines in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcnamara committed Jul 25, 2024
1 parent e2177f3 commit 83b2b2f
Show file tree
Hide file tree
Showing 12 changed files with 138 additions and 138 deletions.
30 changes: 15 additions & 15 deletions src/chart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@ impl Chart {
///
/// // Add the primary chart to the worksheet.
/// worksheet.insert_chart_with_offset(0, 3, &column_chart, 5, 5)?;
///
/// #
/// # // Save the file to disk.
/// # workbook.save("chart.xlsx")?;
/// #
Expand Down Expand Up @@ -1727,7 +1727,7 @@ impl Chart {
///
/// // Add the primary chart to the worksheet.
/// worksheet.insert_chart_with_offset(0, 3, &column_chart, 5, 5)?;
///
/// #
/// # // Save the file to disk.
/// # workbook.save("chart.xlsx")?;
/// #
Expand Down Expand Up @@ -1997,7 +1997,7 @@ impl Chart {
/// chart.set_up_down_bars(true);
///
/// worksheet.insert_chart(0, 4, &chart)?;
///
/// #
/// # // Save the file.
/// # workbook.save("chart.xlsx")?;
/// #
Expand Down Expand Up @@ -2076,7 +2076,7 @@ impl Chart {
/// );
///
/// worksheet.insert_chart(0, 4, &chart)?;
///
/// #
/// # // Save the file.
/// # workbook.save("chart.xlsx")?;
/// #
Expand Down Expand Up @@ -2166,7 +2166,7 @@ impl Chart {
/// chart.set_high_low_lines(true);
///
/// worksheet.insert_chart(0, 4, &chart)?;
///
/// #
/// # // Save the file.
/// # workbook.save("chart.xlsx")?;
/// #
Expand Down Expand Up @@ -2238,7 +2238,7 @@ impl Chart {
/// .set_high_low_lines_format(ChartLine::new().set_color("#FF0000"));
///
/// worksheet.insert_chart(0, 4, &chart)?;
///
/// #
/// # // Save the file.
/// # workbook.save("chart.xlsx")?;
/// #
Expand Down Expand Up @@ -2308,7 +2308,7 @@ impl Chart {
/// chart.set_drop_lines(true);
///
/// worksheet.insert_chart(0, 4, &chart)?;
///
/// #
/// # // Save the file.
/// # workbook.save("chart.xlsx")?;
/// #
Expand Down Expand Up @@ -2380,7 +2380,7 @@ impl Chart {
/// .set_drop_lines_format(ChartLine::new().set_color("#FF0000"));
///
/// worksheet.insert_chart(0, 4, &chart)?;
///
/// #
/// # // Save the file.
/// # workbook.save("chart.xlsx")?;
/// #
Expand Down Expand Up @@ -2452,7 +2452,7 @@ impl Chart {
///
/// // Add the chart to the worksheet.
/// worksheet.insert_chart(0, 4, &chart)?;
///
/// #
/// # // Save the file.
/// # workbook.save("chart.xlsx")?;
/// #
Expand Down Expand Up @@ -7902,7 +7902,7 @@ impl ChartSeries {
///
/// // Add the chart to the worksheet.
/// worksheet.insert_chart(0, 2, &chart)?;
///
/// #
/// # // Save the file.
/// # workbook.save("chart.xlsx")?;
/// #
Expand Down Expand Up @@ -10989,7 +10989,7 @@ impl ChartAxis {
///
/// // Add the chart to the worksheet.
/// worksheet.insert_chart(0, 3, &chart)?;
///
/// #
/// # // Save the file.
/// # workbook.save("chart.xlsx")?;
/// #
Expand Down Expand Up @@ -11100,7 +11100,7 @@ impl ChartAxis {
///
/// // Add the chart to the worksheet.
/// worksheet.insert_chart(0, 2, &chart)?;
///
/// #
/// # // Save the file.
/// # workbook.save("chart.xlsx")?;
/// #
Expand Down Expand Up @@ -11335,7 +11335,7 @@ impl ChartAxis {
///
/// // Add the chart to the worksheet.
/// worksheet.insert_chart(0, 3, &chart)?;
///
/// #
/// # // Save the file.
/// # workbook.save("chart.xlsx")?;
/// #
Expand Down Expand Up @@ -11524,7 +11524,7 @@ impl ChartAxis {
///
/// // Add the chart to the worksheet.
/// worksheet.insert_chart(0, 2, &chart)?;
///
/// #
/// # // Save the file.
/// # workbook.save("chart.xlsx")?;
/// #
Expand Down Expand Up @@ -17742,7 +17742,7 @@ impl ChartPlotArea {
///
/// // Add the modified chart to the worksheet.
/// worksheet.insert_chart(16, 2, &chart)?;
///
/// #
/// # // Save the file.
/// # workbook.save("chart.xlsx")?;
/// #
Expand Down
34 changes: 17 additions & 17 deletions src/conditional_format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ impl ConditionalFormatCell {
/// .set_format(format);
///
/// worksheet.add_conditional_format(0, 0, 9, 0, &conditional_format)?;
///
/// #
/// # // Save the file.
/// # workbook.save("conditional_format.xlsx")?;
/// #
Expand Down Expand Up @@ -1301,7 +1301,7 @@ impl ConditionalFormatCell {
/// .set_format(format);
///
/// worksheet.add_conditional_format(0, 0, 9, 0, &conditional_format)?;
///
/// #
/// # // Save the file.
/// # workbook.save("conditional_format.xlsx")?;
/// #
Expand Down Expand Up @@ -2247,7 +2247,7 @@ impl ConditionalFormatFormula {
/// .set_format(format2);
///
/// worksheet.add_conditional_format(2, 1, 11, 10, &conditional_format)?;
///
/// #
/// # // Save the file.
/// # workbook.save("conditional_format.xlsx")?;
/// #
Expand Down Expand Up @@ -4674,7 +4674,7 @@ impl ConditionalFormatDataBar {
/// let conditional_format = ConditionalFormatDataBar::new().set_fill_color("009933");
///
/// worksheet.add_conditional_format(2, 3, 11, 3, &conditional_format)?;
///
/// #
/// # // Save the file.
/// # workbook.save("conditional_format.xlsx")?;
/// #
Expand Down Expand Up @@ -4739,7 +4739,7 @@ impl ConditionalFormatDataBar {
/// let conditional_format = ConditionalFormatDataBar::new().set_border_color("FF0000");
///
/// worksheet.add_conditional_format(2, 3, 11, 3, &conditional_format)?;
///
/// #
/// # // Save the file.
/// # workbook.save("conditional_format.xlsx")?;
/// #
Expand Down Expand Up @@ -4803,7 +4803,7 @@ impl ConditionalFormatDataBar {
/// let conditional_format = ConditionalFormatDataBar::new().set_negative_fill_color("009933");
///
/// worksheet.add_conditional_format(2, 3, 11, 3, &conditional_format)?;
///
/// #
/// # // Save the file.
/// # workbook.save("conditional_format.xlsx")?;
/// #
Expand Down Expand Up @@ -4870,7 +4870,7 @@ impl ConditionalFormatDataBar {
/// .set_negative_border_color("000000");
///
/// worksheet.add_conditional_format(2, 3, 11, 3, &conditional_format)?;
///
/// #
/// # // Save the file.
/// # workbook.save("conditional_format.xlsx")?;
/// #
Expand Down Expand Up @@ -4932,7 +4932,7 @@ impl ConditionalFormatDataBar {
/// let conditional_format = ConditionalFormatDataBar::new().set_solid_fill(true);
///
/// worksheet.add_conditional_format(2, 3, 11, 3, &conditional_format)?;
///
/// #
/// # // Save the file.
/// # workbook.save("conditional_format.xlsx")?;
/// #
Expand Down Expand Up @@ -4985,7 +4985,7 @@ impl ConditionalFormatDataBar {
/// let conditional_format = ConditionalFormatDataBar::new().set_border_off(true);
///
/// worksheet.add_conditional_format(2, 3, 11, 3, &conditional_format)?;
///
/// #
/// # // Save the file.
/// # workbook.save("conditional_format.xlsx")?;
/// #
Expand Down Expand Up @@ -5043,7 +5043,7 @@ impl ConditionalFormatDataBar {
/// .set_direction(ConditionalFormatDataBarDirection::RightToLeft);
///
/// worksheet.add_conditional_format(2, 3, 11, 3, &conditional_format)?;
///
/// #
/// # // Save the file.
/// # workbook.save("conditional_format.xlsx")?;
/// #
Expand Down Expand Up @@ -5099,7 +5099,7 @@ impl ConditionalFormatDataBar {
/// let conditional_format = ConditionalFormatDataBar::new().set_bar_only(true);
///
/// worksheet.add_conditional_format(2, 3, 11, 3, &conditional_format)?;
///
/// #
/// # // Save the file.
/// # workbook.save("conditional_format.xlsx")?;
/// #
Expand Down Expand Up @@ -5172,7 +5172,7 @@ impl ConditionalFormatDataBar {
/// .set_axis_position(ConditionalFormatDataBarAxisPosition::None);
///
/// worksheet.add_conditional_format(2, 7, 11, 7, &conditional_format)?;
///
/// #
/// # // Save the file.
/// # workbook.save("conditional_format.xlsx")?;
/// #
Expand Down Expand Up @@ -5233,7 +5233,7 @@ impl ConditionalFormatDataBar {
/// let conditional_format = ConditionalFormatDataBar::new().set_axis_color("FF0000");
///
/// worksheet.add_conditional_format(2, 3, 11, 3, &conditional_format)?;
///
/// #
/// # // Save the file.
/// # workbook.save("conditional_format.xlsx")?;
/// #
Expand Down Expand Up @@ -5885,7 +5885,7 @@ impl ConditionalFormatIconSet {
/// .reverse_icons(true);
///
/// worksheet.add_conditional_format(2, 1, 2, 3, &conditional_format)?;
///
/// #
/// # // Save the file.
/// # workbook.save("conditional_format.xlsx")?;
/// #
Expand Down Expand Up @@ -5946,7 +5946,7 @@ impl ConditionalFormatIconSet {
/// .show_icons_only(true);
///
/// worksheet.add_conditional_format(2, 1, 2, 3, &conditional_format)?;
///
/// #
/// # // Save the file.
/// # workbook.save("conditional_format.xlsx")?;
/// #
Expand Down Expand Up @@ -6051,7 +6051,7 @@ impl ConditionalFormatIconSet {
/// .set_icons(&icons);
///
/// worksheet.add_conditional_format(2, 1, 2, 3, &conditional_format)?;
///
/// #
/// # // Save the file.
/// # workbook.save("conditional_format.xlsx")?;
/// #
Expand Down Expand Up @@ -6514,7 +6514,7 @@ impl ConditionalFormatCustomIcon {
/// .set_icons(&icons);
///
/// worksheet.add_conditional_format(2, 1, 2, 3, &conditional_format)?;
///
/// #
/// # // Save the file.
/// # workbook.save("conditional_format.xlsx")?;
/// #
Expand Down
4 changes: 2 additions & 2 deletions src/data_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ impl DataValidation {
/// .set_error_title("Danger, Will Robinson!")?;
///
/// worksheet.add_data_validation(1, 3, 1, 3, &data_validation)?;
///
/// #
/// # // Save the file.
/// # workbook.save("data_validation.xlsx")?;
/// #
Expand Down Expand Up @@ -1255,7 +1255,7 @@ impl DataValidation {
/// .set_error_message("The input value must be an integer in the range 1-10.")?;
///
/// worksheet.add_data_validation(1, 3, 1, 3, &data_validation)?;
///
/// #
/// # // Save the file.
/// # workbook.save("data_validation.xlsx")?;
/// #
Expand Down
2 changes: 1 addition & 1 deletion src/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ impl ExcelDateTime {
/// worksheet.write_with_format(0, 0, &datetime1, &format)?;
/// worksheet.write_with_format(1, 0, &datetime2, &format)?;
/// worksheet.write_with_format(2, 0, &datetime3, &format)?;
///
/// #
/// # workbook.save("datetime.xlsx")?;
/// #
/// # Ok(())
Expand Down
8 changes: 4 additions & 4 deletions src/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ impl FilterCondition {
/// .add_list_filter("West")
/// .add_list_filter("South");
/// worksheet.filter_column(0, &filter_condition)?;
///
/// #
/// # workbook.save("worksheet.xlsx")?;
/// #
/// # Ok(())
Expand Down Expand Up @@ -545,7 +545,7 @@ impl FilterCondition {
/// let filter_condition = FilterCondition::new().add_list_blanks_filter();
///
/// worksheet.filter_column(0, &filter_condition)?;
///
/// #
/// # workbook.save("worksheet.xlsx")?;
/// #
/// # Ok(())
Expand Down Expand Up @@ -609,7 +609,7 @@ impl FilterCondition {
/// let filter_condition =
/// FilterCondition::new().add_custom_filter(FilterCriteria::NotEqualTo, " ");
/// worksheet.filter_column(0, &filter_condition)?;
///
/// #
/// # workbook.save("worksheet.xlsx")?;
/// #
/// # Ok(())
Expand Down Expand Up @@ -683,7 +683,7 @@ impl FilterCondition {
/// .add_custom_filter(FilterCriteria::GreaterThanOrEqualTo, 4000)
/// .add_custom_filter(FilterCriteria::LessThanOrEqualTo, 8000);
/// worksheet.filter_column(1, &filter_condition)?;
///
/// #
/// # workbook.save("worksheet.xlsx")?;
/// #
/// # Ok(())
Expand Down
Loading

0 comments on commit 83b2b2f

Please sign in to comment.