Skip to content

Commit bee25ec

Browse files
committed
Replace apostrophes (U+0027) used in snippets for grave accent (U+0060)
Using apostrophes in the Markdown files causes bad rendering on html files.
1 parent 1f2bdc2 commit bee25ec

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

technical/ObjectDeletion.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ is not tidy.
1414

1515
There are two methods in the ViewProvider that deal with this situation.
1616

17-
'''c++
17+
```c++
1818
bool canDelete(App::DocumentObject *obj)
19-
'''
19+
```
2020
is called when Std_Delete is asked to delete obj, BUT it is called for each of
2121
obj's parent in the InList. This is where you would decide if you will allow
2222
one of your children can be deleted. In effect, the is canDeleteMyChildObject().
2323
Return true to allow the child to be deleted, or false to prevent the deletion.
2424
25-
'''c++
25+
```c++
2626
bool onDelete(const std::vector<std::string> & parms)
27-
'''
27+
```
2828
is also called when when Std_Delete is asked to delete a DocumentObject, but in
2929
this case it is the DocumentObject's ViewProvider that is called. Return true
3030
to allow deletion of the DocumentObject, or false to prevent the deletion.

technical/PropertyChanges.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Recommended reading:
1515
- When a Property's value changes, its PropertyContainer (eventually a DocumentObject) executes the onChanged method with the Property as a parameter. This is where you will take appropriate action based on the new property value.
1616
- Be cautious when inserting logic into onChanged and execute as it is possible to create a loop.
1717

18-
'''c++
18+
```c++
1919
void myFeature::execute()
2020
{
2121
MyProperty->setValue(foo());
@@ -26,7 +26,7 @@ void myFeature::onChanged(App::Property property)
2626
execute();
2727
}
2828
}
29-
'''
29+
```
3030
- The other interesting method involving property changes is mustExecute. This is where you control whether or not your object participates in the next recompute cycle.
3131
3232

0 commit comments

Comments
 (0)