Skip to content

Commit c8e8aa1

Browse files
committed
fix: MD046/code-block-style
Some section incorrectly flagged as indented code block style
1 parent 50161f2 commit c8e8aa1

8 files changed

+31
-29
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ Be sure to follow the proper Markdown syntax. See the [style guide](./styleguide
3636

3737
### Example structure
3838

39-
docs
40-
/standard-library
41-
wstring-convert-class.md
42-
/media
43-
wstring-conversion.png
39+
```
40+
docs
41+
/standard-library
42+
wstring-convert-class.md
43+
/media
44+
wstring-conversion.png
45+
```
4446

4547
**Step 5:** Submit a Pull Request (PR) from your branch to `MicrosoftDocs/cpp-docs/master`.
4648

docs/mfc/containers-advanced-features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ The Links to Embedded Objects feature enables a user to create a document with a
5252

5353
- Call `COleTemplateServer::UpdateRegistry`. The only parameter to `UpdateRegistry` should be *OAT_CONTAINER* if the application is not launched with the "/Embedded" switch. This registers the application as a container that can support links to embedded objects.
5454

55-
If the application is launched with the "/Embedded" switch, it should not show its main window, similar to a server application.
55+
If the application is launched with the "/Embedded" switch, it should not show its main window, similar to a server application.
5656

5757
The MFC OLE sample [OCLIENT](../overview/visual-cpp-samples.md) implements this feature. For an example of how this is done, see the `InitInstance` function in the *OCLIENT.CPP* file of this sample application.
5858

docs/mfc/data-objects-and-data-sources-manipulation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Before an application allows the user to paste data into it, it needs to know if
4848

4949
- Call the data object's `IsDataAvailable` member function if there are only one or two formats you need. This will save you time in cases where the data on the Clipboard supports significantly more formats than your application.
5050

51-
-or-
51+
\-or-
5252

5353
- Call the data object's `BeginEnumFormats` member function to start enumerating the formats available on the Clipboard. Then call `GetNextFormat` until the Clipboard returns a format your application supports or there are no more formats.
5454

docs/mfc/recommendations-for-handling-input-output.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ Whether you use file-based I/O or not depends on how you respond to the question
2424

2525
- Yes, the data resides in an ODBC data source:
2626

27-
Use MFC's database support. The standard MFC implementation for this case includes a `CDatabase` object, as discussed in the article [MFC: Using Database Classes with Documents and Views](../data/mfc-using-database-classes-with-documents-and-views.md). The application might also read and write an auxiliary file — the purpose of the application wizard "both a database view and file support" option. In this case, you'd use serialization for the auxiliary file.
27+
Use MFC's database support. The standard MFC implementation for this case includes a `CDatabase` object, as discussed in the article [MFC: Using Database Classes with Documents and Views](../data/mfc-using-database-classes-with-documents-and-views.md). The application might also read and write an auxiliary file — the purpose of the application wizard "both a database view and file support" option. In this case, you'd use serialization for the auxiliary file.
2828

2929
- No, the data doesn't reside in an ODBC data source.
3030

31-
Examples of this case: the data resides in a non-ODBC DBMS; the data is read via some other mechanism, such as OLE or DDE.
31+
Examples of this case: the data resides in a non-ODBC DBMS; the data is read via some other mechanism, such as OLE or DDE.
3232

33-
In such cases, you won't use serialization, and your application won't have Open and Save menu items. You might still want to use a `CDocument` as a home base, just as an MFC ODBC application uses the document to store `CRecordset` objects. But you won't use the framework's default File Open/Save document serialization.
33+
In such cases, you won't use serialization, and your application won't have Open and Save menu items. You might still want to use a `CDocument` as a home base, just as an MFC ODBC application uses the document to store `CRecordset` objects. But you won't use the framework's default File Open/Save document serialization.
3434

3535
To support the Open, Save, and Save As commands on the File menu, the framework provides document serialization. Serialization reads and writes data, including objects derived from class `CObject`, to permanent storage, normally a disk file. Serialization is easy to use and serves many of your needs, but it may be inappropriate in many data-access applications. Data-access applications typically update data on a per-transaction basis. They update the records affected by the transaction rather than reading and writing a whole data file at once.
3636

docs/mfc/reference/csplitterwnd-class.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -448,17 +448,17 @@ A pointer to the view from which the scrolling message originates.
448448
*nScrollCode*<br/>
449449
A scroll-bar code that indicates the user's scrolling request. This parameter is composed of two parts: a low-order byte, which determines the type of scrolling occurring horizontally, and a high-order byte, which determines the type of scrolling occurring vertically:
450450

451-
- SB_BOTTOM Scrolls to bottom.
451+
- SB_BOTTOM Scrolls to bottom.
452452

453-
- SB_LINEDOWN Scrolls one line down.
453+
- SB_LINEDOWN Scrolls one line down.
454454

455-
- SB_LINEUP Scrolls one line up.
455+
- SB_LINEUP Scrolls one line up.
456456

457-
- SB_PAGEDOWN Scrolls one page down.
457+
- SB_PAGEDOWN Scrolls one page down.
458458

459-
- SB_PAGEUP Scrolls one page up.
459+
- SB_PAGEUP Scrolls one page up.
460460

461-
- SB_TOP Scrolls to top.
461+
- SB_TOP Scrolls to top.
462462

463463
*bDoScroll*<br/>
464464
Determines whether the specified scrolling action occurs. If *bDoScroll* is TRUE (that is, if a child window exists, and if the split windows have a scroll range), then the specified scrolling action can take place; if *bDoScroll* is FALSE (that is, if no child window exists, or the split views have no scroll range), then scrolling does not occur.
@@ -635,9 +635,9 @@ DWORD GetScrollStyle() const;
635635

636636
One or more of the following windows style flags, if successful:
637637

638-
- WS_HSCROLL If the splitter currently manages shared horizontal scroll bars.
638+
- WS_HSCROLL If the splitter currently manages shared horizontal scroll bars.
639639

640-
- WS_VSCROLL If the splitter currently manages shared vertical scroll bars.
640+
- WS_VSCROLL If the splitter currently manages shared vertical scroll bars.
641641

642642
If zero, the splitter window does not currently manage any shared scroll bars.
643643

@@ -736,13 +736,13 @@ A pointer to the device context in which to draw. If *pDC* is NULL, then [CWnd::
736736
*nType*<br/>
737737
A value of the `enum ESplitType`, which can be one of the following:
738738

739-
- `splitBox` The splitter drag box.
739+
- `splitBox` The splitter drag box.
740740

741-
- `splitBar` The bar that appears between the two split windows.
741+
- `splitBar` The bar that appears between the two split windows.
742742

743-
- `splitIntersection` The intersection of the split windows. This element will not be called when running on Windows 95/98.
743+
- `splitIntersection` The intersection of the split windows. This element will not be called when running on Windows 95/98.
744744

745-
- `splitBorder` The split window borders.
745+
- `splitBorder` The split window borders.
746746

747747
*rect*<br/>
748748
A reference to a [CRect](../../atl-mfc-shared/reference/crect-class.md) object specifying the size and shape of the split windows.

docs/mfc/reference/mfc-odbc-consumer-wizard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ This wizard sets up an ODBC recordset class and the data bindings necessary to a
4747

4848
- **Class**
4949

50-
The name of the consumer class, based by default on the name of the file or machine data source that you selected.
50+
The name of the consumer class, based by default on the name of the file or machine data source that you selected.
5151

5252
- **.h file**
5353

docs/mfc/reference/run-time-object-model-services.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,11 @@ The object name exposed to other applications (enclosed in quotation marks).
333333
*nFlags*<br/>
334334
Contains one or more of the following flags:
335335

336-
- `afxRegInsertable` Allows the control to appear in the Insert Object dialog box for OLE objects.
337-
- `afxRegApartmentThreading` Sets the threading model in the registry to ThreadingModel=Apartment.
338-
- `afxRegFreeThreading` Sets the threading model in the registry to ThreadingModel=Free.
336+
- `afxRegInsertable` Allows the control to appear in the Insert Object dialog box for OLE objects.
337+
- `afxRegApartmentThreading` Sets the threading model in the registry to ThreadingModel=Apartment.
338+
- `afxRegFreeThreading` Sets the threading model in the registry to ThreadingModel=Free.
339339

340-
You can combine the two flags `afxRegApartmentThreading` and `afxRegFreeThreading` to set ThreadingModel=Both. See [InprocServer32](/windows/win32/com/inprocserver32) in the Windows SDK for more information on threading model registration.
340+
You can combine the two flags `afxRegApartmentThreading` and `afxRegFreeThreading` to set ThreadingModel=Both. See [InprocServer32](/windows/win32/com/inprocserver32) in the Windows SDK for more information on threading model registration.
341341

342342
*l*, *w1*, *w2*, *b1*, *b2*, *b3*, *b4*, *b5*, *b6*, *b7*, *b8*
343343
Components of the class's CLSID.

docs/mfc/windows-sockets-using-class-casyncsocket.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ This article covers:
4141

4242
- A "port": a short integer.
4343

44-
For a server socket, you must specify a port. For a client socket, you typically accept the default value for this parameter, which lets Windows Sockets select a port.
44+
For a server socket, you must specify a port. For a client socket, you typically accept the default value for this parameter, which lets Windows Sockets select a port.
4545

4646
- A socket type: **SOCK_STREAM** (the default) or **SOCK_DGRAM**.
4747

4848
- A socket "address," such as "ftp.microsoft.com" or "128.56.22.8".
4949

50-
This is your Internet Protocol (IP) address on the network. You will probably always rely on the default value for this parameter.
50+
This is your Internet Protocol (IP) address on the network. You will probably always rely on the default value for this parameter.
5151

5252
The terms "port" and "socket address" are explained in [Windows Sockets: Ports and Socket Addresses](../mfc/windows-sockets-ports-and-socket-addresses.md).
5353

0 commit comments

Comments
 (0)